Jump to content

Get an attribute from iteration before current from ForEach loop


Iraklo

Recommended Posts

Did you tried it via the detail from the metadata? Thus if the metadata node is active in the forloop go to the dateilview in you geo spreadsheet. You will fin there different attributes. Maybe you could use onr of them... Sorry, cant give you an exact way for it. Interested in it as well but maybe its a good starting point.

Link to comment
Share on other sites

hm.. why you dont use a sopsolver inside the loop to write the wanted data in an attribute for further use?

But maybe the for loop is a closed system where the solvers prevoius frame wont work. In case you want the posdata from the previous frame. Dont know. Dont sit on the PC. 

Edited by Follyx
Link to comment
Share on other sites

8 hours ago, Follyx said:

hmm... a wrangle with the iteration from @currentframe -1 metadata and ask for the pos...?

can you up a file for it?

The scene is very basic: I have randomly sized, randomly positioned boxes. Some of them are intersecting, some do not. I want to stack them one after another like books on shelf.

This is what I have now.

Capture.JPG

Link to comment
Share on other sites

Hello Iraklo

 

My guess would be to use a sop solver as Folly suggested. It is really close to a for loop actually if you think about it, and you can more easily store the data you need IMHO. You can simply use a timeshift after the solver if you wish to have the result on frame 1, a for loop would also have to recook if  you make changes anyway.

Edited by Nebucadnezar
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...