Use expression to drive retime

   1646   3   0
User Avatar
Member
20 posts
Joined: April 2015
Offline
Hi!
I have a simple problem, very newby question.
I have some drops wich i drive with attributes created in a point wrangle.
I have emission frame(@dropF) and life(@life), so i have the end frame of their animation(i@endF=@dropF+(@life*24)).
I would like to use @endF in a time warp to automatically freeze the animation at it's last frame.But no chance to use that variable in the retime.What i'm i doing wrong?
Thanks alot!
C.
Edited by CarloB - Sept. 10, 2019 06:28:26

Attachments:
attribute_wrangle_drops.PNG (90.2 KB)
retime_drops.PNG (61.2 KB)

User Avatar
Member
2531 posts
Joined: June 2008
Offline
I think you might have to place the Retime inside a loop and fetch the point attributes, one at a time.
use the point function to fetch the attribute you want for each retime field.
point("../foreach_begin1/",0,"dropF",0)
NOTE: You don't need the @ symbol when referencing an attribute using this hScript function.

Attachments:
Untitled-1.jpg (82.2 KB)

Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
20 posts
Joined: April 2015
Offline
Thanks for the reply!I will try it now!
User Avatar
Member
20 posts
Joined: April 2015
Offline
Working, but i do have a problem, because i try to retime the drop mesh and not the particle,since the geo disappear also the attributes get 0 at that frame.
Infact what i whant to acheave is that the drops stay in place before it disappear.
There is no other way to store that attribute and pass it to the retime?
Cheers
C.


SOLVED, I did just put the retime after the loop, just using the foreach_begin1 node to store the value and pass it to the retime, not super clean but works!!
Thanks!
Edited by CarloB - Sept. 10, 2019 10:42:01
  • Quick Links