Jump to content
Sign in to follow this  
Rob P

Point VOP: Distance VOP return the same value

Recommended Posts

Hi!

 

I'm trying to create a morph effect using a Point VOP.

 

I started by creating a simple morph using a mix to blend position attribute.

Now I would manage my effect using a controller . I created a controller and in a Point VOP I would like to calculate the distance between the point of my goal and the position of the controller (to make a ramp) . The problem is that the distance VOP return the same value for all points ...

Here the file for more precision

 

Particles_Morphing.hip

Share this post


Link to post
Share on other sites

use Bind Export to store your values instead of Add Attribute (since Add Attribute is just for creating attrib and initializing default value (that's why it's the same for all), and to set the values you would need to use Set Attribute as well) 

 

then as well for reading from current point of first input you can just use Bind instead of Import Point Attribute, and while both work, Bind is more efficient for such cases

Particles_Morphing_fix.hip

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
Sign in to follow this  

×