Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[HtoA 4.0.0] Custom Operator HDA/OTL Inclusion

2 REPLIES 2
Reply
Message 1 of 3
Adam_Chabane1
302 Views, 2 Replies

[HtoA 4.0.0] Custom Operator HDA/OTL Inclusion

Hello, I want to create my own custom operators, in particular one for the "assign_material" operator and I'm having trouble figuring out how i'm going to get the custom operator to be included at render time.


I noticed in the python for "assignMaterial" that there was a hard coded hou.node().type().name() in the if statement before running the assignMaterial() function.


Line 370 in python/htoa/operator.py

if parent_type == 'arnold_assign_material':


I tried duplicating the assign_material HDA and not changing the operator name and then it was included just fine at render time - but I'm wondering if there is a way around this, since I don't particularly want my custom operator to have the exact same name as the standard one. Is there a way to tell arnold that my custom operator is in fact an "arnold_assign_material"?

Labels (4)
2 REPLIES 2
Message 2 of 3

Hi Adam,

The code in operator.py is there to make sure that the material isn't translated more than once in the case of rop networks with diamond connections for example.

What is your HDA, does it still contain a set_parameter operator? How is it different from the AssignMaterial ROP and what are you trying to achieve?

Best,

Julian


Message 3 of 3

Hey Julian,

I want to make an HDA that works in the same way as the assign_material, but with additional controls to only set the displacement shader or surface shader based off the toggle parameters the user selects, as well as if I do set the displacement shader be able to set the displacement geometry properties (subdiv, height, padding) all in the same rop HDA.



Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report