Hello,
Time Shift inside the For-Each Loop is ignored?
Do I have to find a workaround (do second branch with the Time Shift before the Loop and store timeshifted results in some “external” attribute and read it inside the first Loop?)
Or is there some simple workaround, please?
Thank you very much!
Time Shift inside For-Each Loop
16199 9 3-
- ikoon
- Member
- 214 posts
- Joined: Jan. 2016
- Offline
-
- animatrix_
- Member
- 4804 posts
- Joined: Feb. 2012
- Offline
You need to connect TimeShift directly into the incoming node before the Block Begin node.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]

-
- ikoon
- Member
- 214 posts
- Joined: Jan. 2016
- Offline
-
- animatrix_
- Member
- 4804 posts
- Joined: Feb. 2012
- Offline
That's the proper way, you need to connect the TimeShift to the input node directly, not to Block Begin node.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]

-
- ikoon
- Member
- 214 posts
- Joined: Jan. 2016
- Offline
-
- animatrix_
- Member
- 4804 posts
- Joined: Feb. 2012
- Offline
No, connect the output of TimeShift to Block End node.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]

-
- ikoon
- Member
- 214 posts
- Joined: Jan. 2016
- Offline
Hello Pusat, thank you very much. But I did not succeed 
I wanted to have two streams inside the For Each:
- block begin
- one stream with the timeshift (to see the “end state”, where the circle ends)
- second without the timeshift (to keep the animation)
- attribute transfer from the timeshifted stream
- rotate the animation, according to the end state
- block end
Is it possible? I did not succeed, so I made two separate Blocks … in the attached file.

I wanted to have two streams inside the For Each:
- block begin
- one stream with the timeshift (to see the “end state”, where the circle ends)
- second without the timeshift (to keep the animation)
- attribute transfer from the timeshifted stream
- rotate the animation, according to the end state
- block end
Is it possible? I did not succeed, so I made two separate Blocks … in the attached file.
-
- Walter How
- Member
- 7 posts
- Joined: Oct. 2013
- Offline
-
- ikoon
- Member
- 214 posts
- Joined: Jan. 2016
- Offline
Hello, unfortunately I did not find a workaround. Maybe you could write a file cache outside the loop, and then read the specified frame inside the loop? EDIT: I mean, use the File Cache SOP and Save to disk outside of the loop, do you understand? I did not test this.
Edited by ikoon - Oct. 6, 2016 13:35:56
-
- juraj
- Member
- 2 posts
- Joined: Feb. 2018
- Offline
-
- Quick Links