How to freeze time for single primitives

   3333   5   4
User Avatar
Member
1 posts
Joined: Nov. 2017
Offline
I have a crystal reference that changes randomly every frame. And I copy this reference to a trail with Copy To Points SOP. How can I disable random change for those crystals who are already copied? File attached for more understanding

Attachments:
crystal.hip (297.2 KB)

User Avatar
Member
23 posts
Joined: April 2016
Offline
This was an interesting one to solve. I'm interested to see if there are other, better ways to do this, as I am still learning myself.

What I did was use a foreach loop with the iterations driven by the incoming points you are copying to. Then inside the foreach is the copy to points node and for each iteration the crystal piece is only calculated at the frame that matches the point id. Finally the result of each iteration is merged together in a sop solver.

Attachments:
crystal_with_foreach.hip (318.5 KB)

User Avatar
Member
678 posts
Joined: Feb. 2017
Offline
Hey KKrEEpER,

here is a version that uses a timeshift node and a stamp value to “freeze” each crystal to its own time.

Cheers
Philipp

Attachments:
crystalwithStamp.hiplc (294.8 KB)

User Avatar
Member
555 posts
Joined: Feb. 2017
Offline
no offense, i got slightly annoyed as I scrub…it's so sloooooow….

so had a go myself…less than 10 nodes in total…

(Timeshift ?….don't even need it)

(you can plug in a grid instead of the line if you like)
Edited by vusta - March 20, 2018 18:43:18

Attachments:
FreezeCopy.jpg (140.9 KB)
vu_FreezeCopy.hipnc (127.7 KB)

User Avatar
Member
5 posts
Joined: Nov. 2021
Offline
vusta
no offense, i got slightly annoyed as I scrub...it's so sloooooow....

so had a go myself...less than 10 nodes in total...

(Timeshift ?....don't even need it)

(you can plug in a grid instead of the line if you like)

Thanks for that Version! Works really nice and fast. Is there a way to slow it down, so it only freezes for example every 20th frame?
User Avatar
Member
172 posts
Joined: Jan. 2014
Offline
A version without simulation, you guys should not use solvers for such trivial tasks.

no offense, vusta but with solvers you also miss the first frame

Edited by Ivan L - Jan. 30, 2022 10:55:24

Attachments:
vu_FreezeCopy_no_sim.hipnc (163.2 KB)
houdini_651VM7Pqsu.mp4 (1.8 MB)

I contribute to the beauty of this world
  • Quick Links