nerdBrain Posted May 5, 2011 Share Posted May 5, 2011 Hey there, noob question. Is there a way for the python console to reflect the actions performed in the viewer or attribute editor, ala Maya MEL reflection? Thanks Quote Link to comment Share on other sites More sharing options...
michael Posted May 5, 2011 Share Posted May 5, 2011 nope... you could have a look at asCode() - I think that's what it's called Quote Link to comment Share on other sites More sharing options...
nerdBrain Posted May 5, 2011 Author Share Posted May 5, 2011 nope... you could have a look at asCode() - I think that's what it's called Sorry...could you clarify what that is used for? Is that a method on the hou object? Quote Link to comment Share on other sites More sharing options...
graham Posted May 5, 2011 Share Posted May 5, 2011 asCode() methods belong to various objects such as hou.Node, hou.ParmTemplate, etc that when called return the Python code necessary to recreate that object. Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted May 5, 2011 Share Posted May 5, 2011 Do you want to see what Houdini is doing for scripting reference or for performance monitoring? If you just want to see what is "cooking" then use the performance monitor from the Windows menu. Check the box to enable monitoring otherwise it won't record anything. If you want scripting reference then check out the help documents. http://www.sidefx.com/docs/houdini11.0/hom/ http://www.sidefx.com/docs/houdini11.0/hom/hou/ Quote Link to comment Share on other sites More sharing options...
nerdBrain Posted May 5, 2011 Author Share Posted May 5, 2011 Do you want to see what Houdini is doing for scripting reference or for performance monitoring? If you just want to see what is "cooking" then use the performance monitor from the Windows menu. Check the box to enable monitoring otherwise it won't record anything. If you want scripting reference then check out the help documents. http://www.sidefx.com/docs/houdini11.0/hom/ http://www.sidefx.com/docs/houdini11.0/hom/hou/ Thanks. Its more for reference. Seeing the command reflection of actions you perform in the UI in Maya is an easy way for artists to prototype scripts or create repro cases for debugging. I was just wondering if there was something similar in Houdini. It seems there is essentially a command for every action performed in the UI, but those commands are not called by the application when the actions are actually performed. Cheers Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted May 6, 2011 Share Posted May 6, 2011 Thanks. Its more for reference. Seeing the command reflection of actions you perform in the UI in Maya is an easy way for artists to prototype scripts or create repro cases for debugging. I was just wondering if there was something similar in Houdini. It seems there is essentially a command for every action performed in the UI, but those commands are not called by the application when the actions are actually performed. Cheers Maya does most things as a process in the interface, but Houdini does things differently with the nodes. So even if you could see what it does in a console, it wouldn't be meaningful like it is in Maya. Instead you can figure out some of what Houdini does and implement it again in Python with the asCode() method for some objects. It will return the Python code necessary to recreate the object. Not all objects have this method, but a lot do. Quote Link to comment Share on other sites More sharing options...
michael Posted May 6, 2011 Share Posted May 6, 2011 maya's interface is built with mel - that's why you can echo all the commands... 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.