Jump to content

Point VOP: Distance VOP return the same value


Rob P

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

Link to comment
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

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.

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