Jump to content
Masoud

Why I can't transfer “P” attribute values, to second geometry?

Recommended Posts

Posted (edited)

Hello;

I wonder why I can't transfer “P” attribute values, to second geometry, by “Attribute Transfer” SOP..!?

 

Thanks for helping.

Att_Transfer.jpg

Att_Transfer.hip

Edited by Masoud

Share this post


Link to post
Share on other sites

And in your example, as distance between original points and displaced point is much greater than neighbour points distance, you also need to use source and destination groups.

  • Like 1

Share this post


Link to post
Share on other sites

If you don't need any of the other functionality of the attribute transfer node, it would be faster to use a wrangle:

@P = @opinput1_P;

(line into input 0, edit into input 1)

  • Like 2

Share this post


Link to post
Share on other sites

you CAN write the vex yourself every time if you want to, or if you feel lazy, just a Point SOP, preset Morph to 2nd input then you can have a controlled lerp amount.

 

  • Like 2

Share this post


Link to post
Share on other sites
22 hours ago, dleonhardt said:

That is what the "Match P Attribute" checkbox is for.

I turned " Match P Attribute "on, but it doesn't work.

Share this post


Link to post
Share on other sites
vector pos = point(1, "P", @ptnum);
float mix = ch("mix");

@P = lerp(@P, pos, mix);

 

  • Like 2

Share this post


Link to post
Share on other sites
14 hours ago, DonRomano said:

vector pos = point(1, "P", @ptnum);
float mix = ch("mix");

@P = lerp(@P, pos, mix);

Even shorter version:

@P = lerp(@P, @opinput1_P, ch("mix"));

 

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×