magneto Posted February 28, 2012 Share Posted February 28, 2012 Out of curiosity, I am trying to set the Text value of a Font SOP to os.environ['USER'] but it literally uses the exact text instead of its result. I tried putting it all inside backticks but it errored out. Is there a way to tell Houdini to evaluate the result of this expression? Thanks Quote Link to comment Share on other sites More sharing options...
Macha Posted February 28, 2012 Share Posted February 28, 2012 `$USER` ? Quote Link to comment Share on other sites More sharing options...
magneto Posted February 28, 2012 Author Share Posted February 28, 2012 Thanks that works. I was wondering how you could do it in python. Like how can I force Houdini to evaluate the python statement? Just curiosity though Quote Link to comment Share on other sites More sharing options...
edward Posted February 29, 2012 Share Posted February 29, 2012 Create a keyframe, change the expression type to python, change the expression itself to what you want. 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted February 29, 2012 Author Share Posted February 29, 2012 Creating a keyframe worked. Although I had to remove the quotes that were automatically put and also use hou.os, instead of os, because it errored out. What's the reason it works with keyframes but not without? Hscript works without a keyframe. Mine is just curiosity though 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.