Isotropix Forums

Wrong filename using Variables in the output

General Discussion about Isotropix and CG related topics

Wrong filename using Variables in the output

Unread postby albertogz » Wed Feb 13, 2019 5:01 pm

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
albertogz
 
Posts: 8
Joined: Thu Feb 15, 2018 10:14 am

Re: Wrong filename using Variables in the output

Unread postby mdkai » Wed Feb 13, 2019 9:10 pm

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
mdkai
 
Posts: 245
Joined: Tue Oct 07, 2014 7:24 pm

Re: Wrong filename using Variables in the output

Unread postby sam » Wed Feb 13, 2019 9:29 pm

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
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1281
Joined: Fri Jan 25, 2013 11:33 pm

Re: Wrong filename using Variables in the output

Unread postby albertogz » Thu Feb 14, 2019 7:15 am

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...?
albertogz
 
Posts: 8
Joined: Thu Feb 15, 2018 10:14 am

Re: Wrong filename using Variables in the output

Unread postby albertogz » Thu Feb 14, 2019 9:16 am

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.
albertogz
 
Posts: 8
Joined: Thu Feb 15, 2018 10:14 am

Re: Wrong filename using Variables in the output

Unread postby mdkai » Thu Feb 14, 2019 12:01 pm

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
mdkai
 
Posts: 245
Joined: Tue Oct 07, 2014 7:24 pm

Re: Wrong filename using Variables in the output

Unread postby sam » Thu Feb 14, 2019 12:53 pm

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
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1281
Joined: Fri Jan 25, 2013 11:33 pm

Re: Wrong filename using Variables in the output

Unread postby albertogz » Thu Feb 14, 2019 4:19 pm

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
albertogz
 
Posts: 8
Joined: Thu Feb 15, 2018 10:14 am

Re: Wrong filename using Variables in the output

Unread postby albertogz » Thu Feb 14, 2019 4:25 pm

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.
albertogz
 
Posts: 8
Joined: Thu Feb 15, 2018 10:14 am

Re: Wrong filename using Variables in the output

Unread postby sam » Thu Feb 14, 2019 6:15 pm

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
Sam Assadian
Isotropix
CEO/Founder
User avatar
sam
 
Posts: 1281
Joined: Fri Jan 25, 2013 11:33 pm

Next

Return to General Discussion
cron