mrcoolmen Posted February 21, 2016 Share Posted February 21, 2016 Hey guys, I wan to ask a noob question, how to create attribute copy in vops. The reason i wan to do this is because i wan to Mix between original position and new position, those two object has different ptnum but they have same "ptid" attribute i assigned to them. Really appreciate your time to help me out Cheers Quote Link to comment Share on other sites More sharing options...
Juraj Posted February 21, 2016 Share Posted February 21, 2016 Hi, you can use Find Attribute Value VOP to return point number of point that has desired ptid value. You can then feed this point number into Attribute Import VOP. Another way might be to synchronize point numbers with ptid attribute. You can do so with Sort SOP set to By Attribute. Then you just import P attribute from second input of Attrib VOP and mix the two. Juraj Quote Link to comment Share on other sites More sharing options...
mrcoolmen Posted February 21, 2016 Author Share Posted February 21, 2016 Hey Juraj, Thank u for ur reply, I think using sort is brilliant. jt wondering if you can give an simple example on how to use find attribute value sop? I tried but I think I did wrong. really appreciate it Quote Link to comment Share on other sites More sharing options...
Juraj Posted February 21, 2016 Share Posted February 21, 2016 Hi, sure Juraj jt_findattribval.hipnc Quote Link to comment Share on other sites More sharing options...
mrcoolmen Posted February 22, 2016 Author Share Posted February 22, 2016 Hey Juraj, Awesome dudde, thks for sharing. Quote Link to comment Share on other sites More sharing options...
anim Posted February 22, 2016 Share Posted February 22, 2016 you can as well use wrangle, the simplest way to copy attrib from second input by id would probably be: f@attrib = f@opinput1_attrib; v@attrib = v@opinput1_attrib; ... in terms of blending position, something like: float blend = chf("blend"); v@P = lerp(v@P, v@opinput1_P, blend); by default it matches geometries by id if exists, but you can choose it in Bindings/Attribute To Match parm 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.