Vellum on animated source
9571 3 1- c0y
- Member
- 52 posts
- Joined: June 2016
- Offline
Hi,
i'd like to know would you do to create a vellum on an animated source :
Here is my base animated mesh.
It's a blend using a “f@blend” attribute. The blend goes from 0 to 1 : 1 means that the grid is unfolded.
What I want to do with vellum is :
use the f@blend attribute to drive constraints. It starts with a “pin to target” (soft type) with high stiffness value, that decrease based on the f@blend (f@stiffness *= (1 - f@blend) ).
When the (1 - f@blend) reaches 0, the grid use a standard “cloth” constraints.
But the problem I have is how to animate all these constraints.
First, the cloth constraint is calculated on first frame, so the constraints are all collapsed.
Then, even with a geometry wrangle in the vellum solver, I can't get the animated “f@blend” to calculate the stiffness…
So i'm stuck. I've also tried to do it inside a DOP Network and SOP Solvers, but no success.
All of this could be great for example on growing plants or other scaling stuffs
Thx !
i'd like to know would you do to create a vellum on an animated source :
Here is my base animated mesh.
It's a blend using a “f@blend” attribute. The blend goes from 0 to 1 : 1 means that the grid is unfolded.
What I want to do with vellum is :
use the f@blend attribute to drive constraints. It starts with a “pin to target” (soft type) with high stiffness value, that decrease based on the f@blend (f@stiffness *= (1 - f@blend) ).
When the (1 - f@blend) reaches 0, the grid use a standard “cloth” constraints.
But the problem I have is how to animate all these constraints.
First, the cloth constraint is calculated on first frame, so the constraints are all collapsed.
Then, even with a geometry wrangle in the vellum solver, I can't get the animated “f@blend” to calculate the stiffness…
So i'm stuck. I've also tried to do it inside a DOP Network and SOP Solvers, but no success.
All of this could be great for example on growing plants or other scaling stuffs
Thx !
- Midasssilver
- Member
- 310 posts
- Joined: July 2012
- Offline
Check out this thread. It should lead you in the right direction. https://www.sidefx.com/forum/topic/58607/ [www.sidefx.com]
- c0y
- Member
- 52 posts
- Joined: June 2016
- Offline
yes, but these examples are always animated with keyframes on the vellum constraint properties, they never use external attributes to activate… But inside the the solver, I can't figure out how to import my f@blend parameter
I also check the vellum rest blend, but I don't understand exactly how to use it inside the vellum solver.
I also check the vellum rest blend, but I don't understand exactly how to use it inside the vellum solver.
- c0y
- Member
- 52 posts
- Joined: June 2016
- Offline
Well, i've found some tricks to do what I want…
First, i've created my base constraints : one cloth constraints with export ‘basestretch’ and ‘basebend’ groups, second with “pin to target” in soft type and respective “pinstretch” et “pinbend” groups.
Then I used a SOP Solver (I didn't know that it would work) inside the vellum solver, to update the constraints from a external node (/CONST1/ in my case).
This will update all the constraints from the base animation to the vellum solver so that you'll have correct restlength.
And finally, I used a vellum constraint property with a VEXpression to get my f@blend attribute from a custom node.
It's working ! I didn't check other cases. I don't know if it's a “clean” way to do it, but it's still a solution .
If someone know another method, share with us
First, i've created my base constraints : one cloth constraints with export ‘basestretch’ and ‘basebend’ groups, second with “pin to target” in soft type and respective “pinstretch” et “pinbend” groups.
Then I used a SOP Solver (I didn't know that it would work) inside the vellum solver, to update the constraints from a external node (/CONST1/ in my case).
This will update all the constraints from the base animation to the vellum solver so that you'll have correct restlength.
And finally, I used a vellum constraint property with a VEXpression to get my f@blend attribute from a custom node.
It's working ! I didn't check other cases. I don't know if it's a “clean” way to do it, but it's still a solution .
If someone know another method, share with us
-
- Quick Links