magneto Posted December 28, 2011 Share Posted December 28, 2011 I want to run my custom hscript expression functions inside a python SOP. Is this possible? Thanks. Quote Link to comment Share on other sites More sharing options...
3dbeing Posted December 28, 2011 Share Posted December 28, 2011 Have you tried grahms inline python sop? It's great for hashing out bits of code.. does hou.hscript("script string") not work? Quote Link to comment Share on other sites More sharing options...
magneto Posted December 28, 2011 Author Share Posted December 28, 2011 (edited) 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 Edited December 28, 2011 by magneto Quote Link to comment Share on other sites More sharing options...
magneto Posted December 28, 2011 Author Share Posted December 28, 2011 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. Quote Link to comment Share on other sites More sharing options...
3dbeing Posted December 28, 2011 Share Posted December 28, 2011 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. Quote Link to comment Share on other sites More sharing options...
magneto Posted December 28, 2011 Author Share Posted December 28, 2011 Wow that sounds very useful. Will check now. 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.