Jump to content

Create Custom Local Variable in my HDA


ftaswin

Recommended Posts

Hi 

 

Is there any way to create a custom local Variable that only accesible - and altered within a node (hda)? I would like to store some data (dictionary) and access it over and over again in a node with a custom variable such as $MYVAR. Thanks

Link to comment
Share on other sites

Hello.

Not sure you can store a global var just for an hda.

Maybe what you can do is to set a var with the command set or setenv:

 

setenv -l MYVAR = tutu

or

setenv -l MYVAR = tutu

python:

hou.hscript("setenv MYVAR = tutut")

...

you can create this var every time you create you node and destroy it when you delete the node.

I dont know if it s a good answer.

 

tel 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...