Jump to content

Recreate Attribute copy in vops


Recommended Posts

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



Link to comment
Share on other sites


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.



Link to comment
Share on other sites

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

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.

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