genesys Posted June 9, 2016 Share Posted June 9, 2016 (edited) Hello, I currently am having an issue evaluating with stating "if value of attribute X was 1 on previous frame, it will be 1 on current frame." I'm not great with VEX coding, but thought it would be good to discover solution. I have inside of a solver sop current frame in input1 and previous in input2. In an attribute vop, I compare said attribute by dropping two getattrib > compare previous to current greater than > ....if begin and end blocks are where I am stuck. Any advices will be appreciated. **edit** I can't upload a file at moment, but will later when home. It seems basic but having difficulties with. Thanks you for any help. I will continue to solve in meantime. Edited June 9, 2016 by genesys Quote Link to comment Share on other sites More sharing options...
f1480187 Posted June 9, 2016 Share Posted June 9, 2016 (edited) Works well for me. keep_value_solver.hipnc Edited June 9, 2016 by f1480187 1 Quote Link to comment Share on other sites More sharing options...
outtacontex Posted June 10, 2016 Share Posted June 10, 2016 Try this. Throw down an attribute wrangle inside of your sop solver. Make sure the "current frame" is in the first input, "previous frame" in your second input. i@attribute; @attribute = max(@attribute, point(1, "attribute", @ptnum)); This should work if your values are just between 0 and 1 for your point attribute. Let me know if you need explanation on the text. 1 Quote Link to comment Share on other sites More sharing options...
mestela Posted June 10, 2016 Share Posted June 10, 2016 This post has a wrangle that does a similar thing: http://forums.odforce.net/topic/25884-houdini-dop-inherit-velocity/#comment-150391 1 Quote Link to comment Share on other sites More sharing options...
genesys Posted June 10, 2016 Author Share Posted June 10, 2016 Thank you all. All of the methods mentioned gave me results I was after. @mestela I actually had to implement similar with velocity. I just manage to do it in sops with a point cloud, transferring the vel from animated geo to fracture points. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.