I have added a video to demonstrate what I mean in a smaller example:
In this script, the data in the peek node should have incremented after every second, as the index in the for-loop goes up after waiting every one second, but in this case, the index goes straight to 10 for some reason. There is also no documentation on the site about this node, so I cannot tell if this is a bug or I am not using the node properly.
Any clarification on this would be very much appreciated!
-Andin
4 Likes
UPDATE: I found the issue in the discord server
The for-loop does not wait for the nodes in the body to finish executing before the next step, so even putting the wait node in there will not work.
Again, it would be nice to have documentation for all nodes on the website, as discord isn’t really a replacement for that
4 Likes
I have tried to make it work, but have been unsuccessful. Its pretty useless as it is now. Anyone know of any workarounds?
4 Likes
I faced a similar problem.
In my situation, I wanted to make some different SceneObjects visible and then hide them after 2 seconds.
I could achieve this by using 2 for loop nodes.
I made those SceneObjects visible in the body of the first for loop node, then connecting the second for loop with next and making them invisible in that body.