Jump to content

link ramp parameters with python


pelos

Recommended Posts

is there a way that i can link a ramp to another?

like right click copy parameter->paste relative reference

i am doing ramp_parm_1.set(ramp_parm_2) in python,     with python it only link the amount of ponits, but doesnt link the value or position of each point =(

is there a special way to link ramps?

thanks.

 

link_ramps_python.hipnc

Link to comment
Share on other sites

  • 7 months later...

I am reviving this thread because I have the same problem.

I was able to link 2 ramps via an extra Python Node  that does the following:

sourceRamp = hou.parm('/obj/geo/Box1/Ramp')
destinationRamp = hou.parm('/obj/geo/Box2/Ramp')

destinationRamp.set(sourceRamp.eval())

I have to setup quite a few ramp links via Python and I would like to do that as a python expression at the destinationRamp. Just doing rightClick -> Expression -> Edit Expression on the destinationRamp's name and putting in hou.parm('/obj/geo/Box1/Ramp').eval() did not work. Would I also have to setup Python expressions for the destinationsRamp's Positions and Values?

 

Thank You.

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