ftaswin Posted September 1, 2016 Share Posted September 1, 2016 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 Quote Link to comment Share on other sites More sharing options...
mathieuN Posted September 1, 2016 Share Posted September 1, 2016 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. Quote Link to comment Share on other sites More sharing options...
ftaswin Posted September 4, 2016 Author Share Posted September 4, 2016 Thank you for your reply unfortunately that did not work Quote Link to comment Share on other sites More sharing options...
mathieuN Posted September 5, 2016 Share Posted September 5, 2016 are you working in python for the dictionary? Quote Link to comment Share on other sites More sharing options...
ftaswin Posted September 6, 2016 Author Share Posted September 6, 2016 Yes but I do not want to use userDataDict thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.