Ahmed Saady Posted July 11, 2015 Share Posted July 11, 2015 (edited) Hey guys Im trying to isolate a deformed object using a vop sop but it did not work with me well. As you will see in photos that i did the deformed on the ground but now i want to isolate the deformed geometry only but comparing the length from the position using vop sop In h13 i was Importing the P the comparing it with the current P the export it as attribute , but in houdini 14 its not working with me at all Any help please Here is the rock animation seq: http://www.mediafire.com/download/g39bvlxausvzk0i/RockAnimation.rar Deformed_Geo.hip Geo_Marked.rar Edited July 11, 2015 by AhmedSaady Quote Link to comment Share on other sites More sharing options...
SSFX Posted July 11, 2015 Share Posted July 11, 2015 There was actually a couple of things wrong. First the getattrib was not provided with any ptnum to work with and was referring to the first input of the pointvop which is the same as the global variables. Then you were using addattrib to bind values using the "default value" input when you should only use it to create the local variable. I would suggest you use wrangle nodes for this type of work, much faster and much simpler then what you are doing here. if(@P==point(1,"P",@ptnum)){ removepoint(0,@ptnum); } Alex Deformed_Geo_fixed.hipnc 1 Quote Link to comment Share on other sites More sharing options...
Ahmed Saady Posted July 11, 2015 Author Share Posted July 11, 2015 There was actually a couple of things wrong. First the getattrib was not provided with any ptnum to work with and was referring to the first input of the pointvop which is the same as the global variables. Then you were using addattrib to bind values using the "default value" input when you should only use it to create the local variable. I would suggest you use wrangle nodes for this type of work, much faster and much simpler then what you are doing here. if(@P==point(1,"P",@ptnum)){ removepoint(0,@ptnum); } Alex Hey Alex well , you are right it is much faster and it solve the issue also and for the original setup it was close but the issue was from import the P from second input not from first one and this is what is look like: Then you just delete based on $DEFORMED value which you export from it. 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.