Jump to content

Fixing a value once it reaches a certain number


Recommended Posts

Hi guys,

I was hoping someone might have a clue here...I have a vop with an object running over an rbd simulation to activate pieces, the only problem is they seem to be becoming inactive again after being activated. So the basic question here is if there is a way to fix an attribute once it reaches a number (in this case 1) so it cant change back to 0?

Cheers!

Link to comment
Share on other sites

Hi Jason,

If this is on SOP level, you can use a sop solver and compare it with it self from last frame, something like

if(point(1, "active", @ptnum)) { i@active = 1;}

where you have the first input as itself and the second input as prev frame. 

However, if you are doing the vop that you are doing inside dop solver it should keep your comparison, imho.

Hope it helps!

 

  • Thanks 1
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...