Hey,
So I'm having this case where I have 100 variations of a plant in a single file cache, each on a different frame.
I'm trying to scatter them on a ground and I want scatter to randomly use variations of this plant for each point.
I made a setup with a timeshift and for each point, where timeshift frame refers to for each iteration and randomly chooses a variation... at leat I think i did that.
rint(rand(detail("../foreach_begin5_metadata1", "iteration", 0))*20-1)
and it doesn't work. It only scatters one variation.
I figured out that when I change the frame value to:
rint($F + rand(detail("../foreach_begin5_metadata1", "iteration", 0))*20-1)
then it works but then it eats a ton of ram so I guess I'm doing it wrong.
I'm using packed disk primitives by the way.
My frame range is 1000-1100 if this makes a difference.
Please help
Scattering/ "for each point"/ timeshift
1369 2 1- didi5000
- Member
- 3 posts
- Joined: Dec. 2016
- Offline
- tamte
- Member
- 8590 posts
- Joined: July 2007
- Online
didi5000
So I'm having this case where I have 100 variations of a plant in a single file cache, each on a different frame.
try loading all your frames at once using File Merge SOP (as Packed Disk) so that you have 100 packed primitives as a static geo
then you can just copy using Piece attribute on Copy SOP to pick one variant per point, no foreach, no timeshifts
Edited by tamte - Aug. 10, 2022 10:52:52
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- didi5000
- Member
- 3 posts
- Joined: Dec. 2016
- Offline
-
- Quick Links