Jump to content

Is there a way to run hscript expression functions in a python script?


magneto

Recommended Posts

I tried it but it doesn't seem to work. I tried using sqrt(5) and got this result in the houdini console:

hou.hscript("sqrt(5)")

('', 'Unknown command: sqrt\n\r')

EDIT: I didn't check out Graham's script. What does it do? Inline Python SOP doesn't ring a bell :unsure:

Edited by magneto
Link to comment
Share on other sites

Nevermind hou.hscriptExpression works. Searching the help file is a bit painful but once you find it, it's good :)

It would be good if it allowed you to search scripting vs normal usage, etc. I like the categorization of the search results but I read that only happens inside Houdini.

Link to comment
Share on other sites

Nevermind hou.hscriptExpression works.

Ahh yes... ye ol' script vs expression... haha

The inline python sop allows you to run python and operate on geo within the node. for instance i wrote a simple 4d noise and moved the points around... in and of itself not that special, but the cool part is you can just test bits of script that run inline to see how/if it works, without having to create an entirely new DA or go through the hou.session or the python shell, it's all right there, i've found it quite useful... You have to d/l it from his website and then move it into one of you otl_paths.

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