Jump to content

How to reverse value/expression? (paste relative references)


Recommended Posts

Hello there.

 

I am fairly new to Houdini and animation. 

I have done the "create reference copy" command on one edge loop/polysplit node, and i would like to edit the expression on the copy's "edge percentage" parameter so that it has the inverted value of the node that it is referencing.

So that when it's (for example) 0.8 on the original node, it's 0.2 on the reference copy.

How is this done?

 

In other nodes it could be the rotate parameter. That when it's 90 on the original it's -90 in the referenced node.

 

Thanks in advance.

Edited by DévinOdforce
Link to comment
Share on other sites

just change your expression to handle the inversion. for example, if you want to change a 90-degree rotation to -90, then change your expression to -ch("../some_node/rx"). for something like your percentage example, just use 1 - ch("../some_node/edge_percentage"), or whatever the channel name is. 

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