JoshJ Posted January 24, 2009 Share Posted January 24, 2009 I'm trying to create a mantra render node using python. rop = hou.node('/out') m = rop.createNode('mantra') This creates an H8 mantra node! How do I create a mantra node of the most recent version? (I just guessed about typing mantra there...) And more importantly, where do I look to find all possible "types" of nodes I can create with "createNode"? Quote Link to comment Share on other sites More sharing options...
JoshJ Posted January 24, 2009 Author Share Posted January 24, 2009 okay I figured it out... rop = hou.node('/out') m = rop.createNode('ifd') why would calling 'mantra' create an H8 node by default though? Quote Link to comment Share on other sites More sharing options...
mic Posted January 25, 2009 Share Posted January 25, 2009 hou.Node.type() - returns the type of the node, and by RMB clicking in the Network you can also see the operator type Quote Link to comment Share on other sites More sharing options...
graham Posted January 25, 2009 Share Posted January 25, 2009 The reason 'mantra' creates a Houdini 8 Mantra is to maintain backwards compatibility. Manta in Houdini 9.x is fundamentally and significantly different than it was in 8. If Mantra 9 merely replaced these in old files when opened, these old files would lose all their rendering settings and whatnot so it was necessary to create a new operator type for Mantra. 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.