question

Carlos Dordelly avatar image
Carlos Dordelly asked ·

C4DtoA | Drivers custom path - Render queue

Hi all!

I'm having some troubles to render with render queue when my scene has multiple drivers with relative paths and $prj token.

I have this path in my drivers:

If I do render with picture viewer (shift+r) the render works perfectly. But, if I add this scene to the render queue I get this error when it try to start to render:

C4DtoA | 00:00:00 2449MB ERROR| [driver_exr] c4d|crypto: can't create file "./C4DtoA_Drivers_Output_doubts/C4DtoA_Drivers_Output_doubts_crypto_000.exr": OpenEXR exception: No such file or directory.
C4DtoA | 00:00:00 2449MB ERROR| [driver_exr] c4d|info: can't create file "./C4DtoA_Drivers_Output_doubts/C4DtoA_Drivers_Output_doubts_info_000.exr": OpenEXR exception: No such file or directory.

What I'm doing wrong? I need to change something if I'm going to use the render queue? I attached a simplified scene file with this. Thanks!

c4dtoa-drivers-output-doubts.zip

renderc4dtoa
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Carlos Dordelly avatar image
Carlos Dordelly answered ·

I didn't get luck with the script, the ./ still appears. So nothing more to do, thanks again, cheers!

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Carlos Dordelly avatar image
Carlos Dordelly answered ·

Ok I'm going to try with a script. Thanks a lot for your help, if I don't get luck with the script I'll be waiting the next release. Have a nice day! :)

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Peter Horvath avatar image
Peter Horvath answered ·

If adding the ./ automatically is just a UI thing, then maybe you can write a script to setup the path without it. (I have not tried it.) Otherwise I'm afraid there's no other way at the moment, just the absolute path.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Carlos Dordelly avatar image
Carlos Dordelly answered ·

That means there's nothing more I can do for this in this moment right? Or is there any way that the variables can work?

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Peter Horvath avatar image
Peter Horvath answered ·

As I said the driver is relative to the current working directory, so if you create the folder in the project root, but the working directory is something different when rendering via the Render Queue, then it keeps failing.

The syntax for environment variables should be: $desktop or [desktop]. However you're right, since R18 there's this stupid thing that C4D automatically adds ./ to the path. This makes it useless.

I'll find out something for the next release.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Carlos Dordelly avatar image
Carlos Dordelly answered ·

And why if I create the folder "C4DtoA_Drivers_Output_doubts" the drivers still can't write the file?
And yes in C4D the ./ always mean relative project path. Now I have a new doubt about how can I use correctly the environment variable path in the custom path field?

I assigned a environment variable to my desktop: %desktop% but, when I try to set the path to "%desktop%/$prj_info_###.exr" the driver automatically put the ./ at the start of the custom path:

If I try to deleted it's come back automatically, I can't delete the ./ and I still get the directory error because the driver try to render in the project path + my desktop path.

Thanks!


Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Peter Horvath avatar image
Peter Horvath answered ·

You've got this error because the folder C4DtoA_Drivers_Output_doubts does not exist, so the driver can not write the file.

Relative paths are tricky. The ./ means relative to the current working directory, which is not defined in Cinema 4D. I suppose when you render to the Picture Viewer, the project root is used, however when rendering via the Render Queue then the working directory points to something else.

If ./ in C4D always mean relative to the project root folder then it would make sense to follow this in the Arnold Driver object in a next release. Currently you have to use an absolute path, or you can use an environment variable in the path.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.