Joshuazt Posted February 24, 2021 Share Posted February 24, 2021 (edited) hello! I am trying to get a python Variable to be brought into Houdini under the "alias and Variables" windows. I was wondering if anyone else has solve this issue and would be able to assist [ cusompaths = test hou.hscript("setenv = $custompaths") hou.hscript("varchange $custompaths") ][/code] thanks josh Edited February 24, 2021 by Joshuazt Quote Link to comment Share on other sites More sharing options...
Joshuazt Posted February 24, 2021 Author Share Posted February 24, 2021 Nevermind! Sorted it custompaths = "path" hou.hscript("setenv VERSION=" + custompaths) hou.hscript("varchange VERSION") Quote Link to comment Share on other sites More sharing options...
snoot Posted February 24, 2021 Share Posted February 24, 2021 Hey there, Maybe this will help. These are the python methods that are available that do the job without having to wrap hscript. hou.putenv, hou.getenv, hou.unsetenv Cheers 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.