Jump to content
Sign in to follow this  
chrisribar

another animated vellum constraints inside dops question

Recommended Posts

hey ya'll, i'm trying to animate the restscale of each emitted hair strand based on age but i'm currently stuck because "@restscale" is erroring out on the vellumconstraintproperty inside the dopnet. any ideas would be great! thank you!

chris

emit_hair.gif

anim_rest_scale_age_v001.hip

setup.PNG

Share this post


Link to post
Share on other sites

do

restscale = 2;

instead of 

f@restscale = 2;

since you want to modify restscale variable containing value of restscale parameter that is passed to the snippet instead of directly create or modify restscale attribute (which wouldn't even be used by vellum and you don't have permission to create, hence it's erroring out)

Edited by anim

Share this post


Link to post
Share on other sites

thanks Tomas! Any hints on how to create age based on my emitter so that the curves grow over time?

Share this post


Link to post
Share on other sites
5 hours ago, chrisribar said:

thanks Tomas! Any hints on how to create age based on my emitter so that the curves grow over time?

you can for example age your Geometry or ConstraintGeometry using POP or Geometry Wrangle using

f@age += @TimeInc;

then in Vellum Constraint Property DOP either use 

float age = point(1, "age", @ptnum); 
restscale = 1 + age*.5;

if you have @age only on points of the geometry (see example file)

 

or if you have f@age on primitives of ConstraintGeometry you can do directly

restscale = 1 + f@age*.5;

anim_rest_scale_age_v001_fix.hip

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

×