Jump to content

creating mantra with hou.createNode


JoshJ

Recommended Posts

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"?

Link to comment
Share on other sites

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.

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