Bifrost Forum
Welcome to the Bifrost Forum. This is the place for artists using Bifrost to ask and answer questions, browse popular topics, and share knowledge about creating effects procedurally using Bifrost. You can also visit the Bifrost Community on AREA to download an array of ready-to-use graphs, read Bifrost news and updates, and find the latest tutorials.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

My arrays don't maintain their size

Message 1 of 3
103 Views, 2 Replies

My arrays don't maintain their size


I've tried for_each, iterate and do_while.  And they all result in arrays that are smaller in size than the size I set.  In the above image, my max_iterations is set to 100.  I expect to get a resulting array with 100 indices.  But that's not the case.  The resulting array size is determined by the size of my input "falloff_indices".  Can someone explain to me why that is?  And better yet, tell me how I get an output that matches my max_iterations?

Message 2 of 3
in reply to: mcw0

Hey there, from looking at your graph I'm guessing its not getting to the max iterations because the falloff_indices port is set to iterate. Meaning it will iterate through the size of that array and no more or if the max iterations is less than the size of that array it will stop at the max. Try setting the port to not iterate and using a get_from_array plugging in the current index into the index. Not sure what it will result once it gets to the end of the array though.

Message 3 of 3
in reply to: andrew.bkly

Thank you for that suggestion.  My resulting array is the correct size.  But it's not in sync.  The values aren't in the correct indices.  I have a new post asking about this.  Thanks again.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums