Jump to content

How to have a python expression's result be evaluated in a Font SO


magneto

Recommended Posts

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 :)

Link to comment
Share on other sites

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 :)

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