Page 1 of 2

Wrong filename using Variables in the output

Unread postPosted: Wed Feb 13, 2019 5:01 pm
by albertogz
I trying to use variables in filename output under layers, then I see custom vars works for directories but not for the filename.

In Variable Editor I set:
$PROJECT_PATH = /tmp/projects
$SHOT_NUM = 001
$VERSION = 01

In the filename output:
$PROJECT_PATH/MyProject/Shots/shot_$SHOT_NUM/render/v$VERSION/shot_$SHOT_NUM_beauty_v$VERSION_.exr

If I try Check Paths option under Render Manager, then create folders with its var value, or if already exists, write the render file right in that location.

Issue is with filename, that is writed with the name "shot_$SHOT_NUM_beauty_v$VERSION_00000.exr" instead "shot_001_beauty_v01_00000.exr"

There is a known issue with the I/O system?
Maybe I should to configure something before?

Thanks!

Gz

Re: Wrong filename using Variables in the output

Unread postPosted: Wed Feb 13, 2019 9:10 pm
by mdkai
Hi
It does not work because you mix a string with the actual variable name.
If you wish to get the variable value inside a string, simply terminate the string with a colon.

For example:
$myShot= car01
$myShot:_renderOutput.exr
car01_renderOutput.exr

Or mix it with frame padding

Frame padding methods using $F variable
$F c:\my_image_25.exr
$4F c:\my_images_0025.exr
$F$F c:\my_image_2525.exr
$F:_final.exr c:\my_image_25_final.exr

Cheers
Kai

Re: Wrong filename using Variables in the output

Unread postPosted: Wed Feb 13, 2019 9:29 pm
by sam
Thanks Kai for your very detailed reply. I wonder why most users miss this specially that this is pretty explicit in the user manual: https://clarissewiki.com/4.0/basic_usage.html

Re: Wrong filename using Variables in the output

Unread postPosted: Thu Feb 14, 2019 7:15 am
by albertogz
Thank you guys to reply. I'll try this.

However I'm mixing string with var in the path for folders too, and this works. Maybe concatenate is a special case (resolve it in file write time) filenames and for this requiere special char...?

Re: Wrong filename using Variables in the output

Unread postPosted: Thu Feb 14, 2019 9:16 am
by albertogz
About the frame padding, according with https://clarissewiki.com/4.0/padding.html, I have this result:

C:/tmp/test_$F:_final.exr > test_0_final.exr00000.exr

There is not overriding default padding and extension.

Re: Wrong filename using Variables in the output

Unread postPosted: Thu Feb 14, 2019 12:01 pm
by mdkai
Hey

Well there is no need to add the extension explicitly, it is added automatically since you define the format independent.
For the frame padding add it with a numerator like $4F wich will result in c:\my_images_0025.exr

Cheers
Kai

Re: Wrong filename using Variables in the output

Unread postPosted: Thu Feb 14, 2019 12:53 pm
by sam
albertogz wrote:Thank you guys to reply. I'll try this.

However I'm mixing string with var in the path for folders too, and this works. Maybe concatenate is a special case (resolve it in file write time) filenames and for this requiere special char...?

No read the documentation, it explains why Clarisse can't resolve the variable name without the semicolon

Re: Wrong filename using Variables in the output

Unread postPosted: Thu Feb 14, 2019 4:19 pm
by albertogz
mdkai wrote:Hey

Well there is no need to add the extension explicitly, it is added automatically since you define the format independent.
For the frame padding add it with a numerator like $4F wich will result in c:\my_images_0025.exr

Cheers
Kai


Thank you Kai

In my tests there are not working as expected. I mean, setted frame padding by var $F isn't doing override the default padding, else this is added to the end of string.

Other test that I have done:

C:/tmp/test_$4F:_final_ > test_0000_final_00000.exr

Re: Wrong filename using Variables in the output

Unread postPosted: Thu Feb 14, 2019 4:25 pm
by albertogz
sam wrote:
albertogz wrote:Thank you guys to reply. I'll try this.

However I'm mixing string with var in the path for folders too, and this works. Maybe concatenate is a special case (resolve it in file write time) filenames and for this requiere special char...?

No read the documentation, it explains why Clarisse can't resolve the variable name without the semicolon


Excuse me for no read docs. For this case the documentation it explains, but you will be agree with me about Clarisse documentation is not at the same level than its great software. I think that would be good Clarisse have a documentation at the same level than Houdini documentation. I'm sure your team is working for that.

Re: Wrong filename using Variables in the output

Unread postPosted: Thu Feb 14, 2019 6:15 pm
by sam
We are always listening to the community to improve our software.
Could you please share which part of the documentation you would like to see improved?

Thanks