Jump to content

How to call an environment variable inside an other one ?


Recommended Posts

HI guys !

in the Aliases and Variables panel (Alt+Shift+A)

i have created the following env var :

SHOT = D:\PROJECT\2013\TOTO\SHOTS\TOTO_0001

now i would like to create the following env var :

RENDER = $SHOT\3DWORK\RENDER

CACHE = $SHOT\3DWORK\CACHE

But it doesn't work ... i also give a try to the following synthax as i am working on windows 7

RENDER = %SHOT%\3DWORK\RENDER

CACHE = %SHOT%\3DWORK\CACHE

just in case i also try to invert the \ to follow the linux synthax so i use the same command but i replace all the \ by /

Both trial doesn't work either ...

So i would like to know if you guys have any idea on what i am doing wrong ?

Thanks for your time !

Cheers

E

Edited by sebkaine
Link to comment
Share on other sites

Hi Edward,

Thanks for your support ! well i did try this setup

SHOT = D:/PROJECT/2013/TOTO/SHOTS/TOTO_0001

RENDER = $SHOT/3DWORK/RENDER

But it doesn't work ...

I would be curious to know if this work on LINUX just to isolate if the problem is

- OS related

- Houdini related

For the moment i use this layout to write my images

SHOT = D:/PROJECT/2013/TOTO/SHOTS/TOTO_0001

RENDER = 3DWORK/RENDER

$SHOT/$RENDER/myImage.$F4.exr

This works perfectly , But i have to call 2 variable instead of only one , so it would be far more elegant if i could find a way to only use this command :

$RENDER/myImage.$F4.exr

Cheers

E

Link to comment
Share on other sites

Guest mantragora

Windows itself can expand variable in variable, I just tested it and explorer properly opens directory that second variable points too, but in Houdini it doesn't work it so I suppose it's a Houdini thing.

PS. Besides, I'm using similar system for setting up my VisualStudio where I use one variable to set some value in another variable and then VS reads it to correctly setup project.

Edited by mantragora
Link to comment
Share on other sites

Many thanks for your help guys !

In fact as windows manage to call env var in env var with %% synthax i was thinking of a Houdini issue ! But i prefer to be sure that i was not forgetting something !

So if i want to use this synthax with the alias and variable panel :

SHOT = D:/PROJECT/2013/TOTO/SHOTS/TOTO_0001

RENDER = $SHOT/3DWORK/RENDER

$RENDER/myImage.$F4.exr

It looks that it's not possible at the moment ! it's not a big deal but it force us to use redundant var in the path instead of only one ...

Thanks again for taking the time to help me ! :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...