magneto Posted December 2, 2014 Share Posted December 2, 2014 Hi, I wrote the outputs of this function into a text file but I don't know how to run this Python code in Houdini. File > Run Script only support .cmd files. I pasted the contents into the Python shell but it only created the container, and then errored out saying it couldn't find the parm. Thanks. Quote Link to comment Share on other sites More sharing options...
pezetko Posted December 3, 2014 Share Posted December 3, 2014 exec() import hou out = hou.selectedNodes()[0] #select first selected node strCode = out.asCode(True,True) #get code, skip defaults, recursively out.setName("newName",1) #rename old node exec(strCode) #run saved code out.moveToGoodPosition() #move old node so it's not overlapping 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted December 3, 2014 Author Share Posted December 3, 2014 Thanks Petr it works 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.