Community
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.
cancel
Showing results forย 
Showย ย onlyย  | Search instead forย 
Did you mean:ย 

For each node and arrays misunderstanding.

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
chokmah
427 Views, 5 Replies

For each node and arrays misunderstanding.

Hello dear Maya users ๐Ÿ™‚

I am learning to use Bifrost trying to replictae a python code I did some times ago.
The fact is that I probably don't understand some of Bifrost For each and arrays subtlety, especially when trying the previous element of an array.

Could anyone explain me. For an example, how you would create fibbonacci sequence with Bifrost.

Thank you in advance. Your help could be really helpfull to me ๐Ÿ™‚


5 REPLIES 5
Message 2 of 6
mjcg91
in reply to: chokmah

for-each loop are for parallel computation, therefore you can't use it to get the result from previous iterations. For this you can use an Iterate loop with port states. The port states allows you to update a value or an array during the loop, and be able to get / update informations. This is what you need to make a fibonacci sequence.

Maxime Jeanmougin - Technical Artist
https://maximejeanmougin.com

Join the Bifrost Addicts community on Discord:
https://discord.gg/bifrost-addicts
Message 3 of 6
chokmah
in reply to: mjcg91

Hello @mjcg91 ,

I have tested what you said and its works. Thank you a lot, it was the missing brick for me able to do what I want ^^

Message 4 of 6
chokmah
in reply to: chokmah

Nop, I finally don't manage to create the array I need. There is really something I don't get ...

 

Message 5 of 6
mjcg91
in reply to: chokmah

fibbonarcci_sequence_1.jpg

 

fibbonarcci_sequence_2.jpg

Maxime Jeanmougin - Technical Artist
https://maximejeanmougin.com

Join the Bifrost Addicts community on Discord:
https://discord.gg/bifrost-addicts
Message 6 of 6
chokmah
in reply to: chokmah

I finally managed to do what I wanted (Calculates some iteraive matrices array).
And your suggestions helped me a lot @mjcg91 .

Really, really thank you ๐Ÿ™‚

 

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

Post to forums