Jump to content

How to pass custom properties to Mantra?


Recommended Posts

Hi,

 

I'm playing with some of the callbacks mentioned in this article, specifically overriding shaders if an object has a particular category (string) tag:

https://www.sidefx.com/docs/houdini/render/python.html

I'm able to query and set the standard properties that are shown when you feed ray_show into Mantra but I'm curious how to add my own properties.  Is this something that is possible through the UI or do you have to add support for it yourself in the SOHO Python script?  I also see that there are some undocumented tags on these properties, can anybody explain what they do?  I think I understand mantra_name and mantra_class but I have no idea what the point of spare_category is.

 

Thanks!

 

 

 

Screen Shot 2021-01-26 at 9.26.54 PM.png

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