How to trigger global env var update from Python or Hscript?

   2459   2   0
User Avatar
Member
390 posts
Joined: Jan. 2012
Offline
When changing an env var from the Aliases and Variables window, the scene instantly updates automatically to reflect that variable change anywhere it was being used.

But when changing the same env var with setenv in HScript or hou.putenv, the scene does not update. I've also noticed it takes a few seconds to reflect that change in the Aliases and Variables window if you have it open while changing it.


What is the correct way to force the scene to update after changing an env var like this?


thank you!
.
User Avatar
Member
8041 posts
Joined: Sept. 2011
Offline
the hscript 'varchange' command
User Avatar
Member
390 posts
Joined: Jan. 2012
Offline
Works perfectly, thank you so much!
.
  • Quick Links