randomizing instances with looped prototipes

   2676   4   0
User Avatar
Member
134 posts
Joined: Dec. 2006
Offline
Hey, I have a animtion that i loop for 50 frames using the retime node. I then want to instance that loop onto points and randomize the timing of the loop using the retimeinstance. Is there some way that solaris can access the cache in a loop.

My animation is from frame 1 - 50 and the shot starts a 1001. I dont want to have to cache 1500 frames just to randomize a loop in the instance?

also it seems impossible to use time scale when your cache starts at 1001.
Edited by willh - Nov. 26, 2021 04:10:52
User Avatar
Member
1 posts
Joined: Sept. 2020
Offline
hi there, did you figure out how to do it? have the same question
User Avatar
Staff
4560 posts
Joined: July 2005
Offline
Looping is best handled using Value Clips in USD. Use the Geo Clip Sequence LOP in H20 to (relatively) easily create a value clip with looping animation. Then reference this value clip looping animation as a prototype to use in an Instancer LOP. This will give you a point instancer with all identically timed looping animations. Then use a Retime Instances node to assign different offsets in the animation to each instance.

If your shot goes from 1000-1500, you should be fine to create a looping animation of length 550, then make sure all your offsets generated by the retime instances LOP are in the range (1000, 1050). Of course with value clips, generating a loop that is 1500 or 15000 frames long should be no problem, and won't affect the size of the USD much at all.
User Avatar
Member
9 posts
Joined: June 2014
Offline
@mtucker i made it loop using 'value clip' but instancer is not take the loop.
file attached .




mtucker
Looping is best handled using Value Clips in USD. Use the Geo Clip Sequence LOP in H20 to (relatively) easily create a value clip with looping animation. Then reference this value clip looping animation as a prototype to use in an Instancer LOP. This will give you a point instancer with all identically timed looping animations. Then use a Retime Instances node to assign different offsets in the animation to each instance.

If your shot goes from 1000-1500, you should be fine to create a looping animation of length 550, then make sure all your offsets generated by the retime instances LOP are in the range (1000, 1050). Of course with value clips, generating a loop that is 1500 or 15000 frames long should be no problem, and won't affect the size of the USD much at all.

Attachments:
lops_loop_instances.hip (159.9 KB)

User Avatar
Member
3 posts
Joined: July 2017
Offline
After you make loop in value clip, go with geo clip sequence - it should work.

JOHN c
@mtucker i made it loop using 'value clip' but instancer is not take the loop.
Edited by not_houdini_master - Oct. 21, 2025 11:52:32

Attachments:
geo clip.png (78.0 KB)

  • Quick Links