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
17074 9 3-
- ikoon
- Member
- 226 posts
- Joined: 1月 2016
- オフライン
-
- animatrix_
- Member
- 5042 posts
- Joined: 2月 2012
- オフライン
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
- 226 posts
- Joined: 1月 2016
- オフライン
-
- animatrix_
- Member
- 5042 posts
- Joined: 2月 2012
- オフライン
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
- 226 posts
- Joined: 1月 2016
- オフライン
-
- animatrix_
- Member
- 5042 posts
- Joined: 2月 2012
- オフライン
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
- 226 posts
- Joined: 1月 2016
- オフライン
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: 10月 2013
- オフライン
-
- ikoon
- Member
- 226 posts
- Joined: 1月 2016
- オフライン
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 - 2016年10月6日 13:35:56
-
- juraj
- Member
- 2 posts
- Joined: 2月 2018
- オフライン
-
- Quick Links