python code of light node

   2765   2   1
User Avatar
Member
9 posts
Joined: 7月 2010
Offline
I had a question of python code of light node. How can I load the parameter of contribname in light node? Please saw files in the attachment.

I use Houdini 13.0.314.

Attachments:
light2.jpg (98.7 KB)
light1.jpg (74.7 KB)

User Avatar
Member
1533 posts
Joined: 7月 2005
Offline
I don't know this for a fact, but I suspect you might need:

lNode.parm()
instead of: lNode.param()

G
User Avatar
Member
599 posts
Joined: 5月 2011
Offline
friend43
I had a question of python code of light node. How can I load the parameter of contribname in light node? Please saw files in the attachment.

I use Houdini 13.0.314.


lNode.parm('light_contribname1').set('diffuse')
lNode.parm('light_contribname2').set('specular')


Multi-params are accessed by replacing the hash sign in their parm template name ('#') with their index digit.
Halfdan Ingvarsson
Senior Developer
Side Effects Software Inc
  • Quick Links