GithubHelp home page GithubHelp logo

Comments (3)

OmarEmaraDev avatar OmarEmaraDev commented on July 22, 2024

The dummy parameter is the parameter called index, we add it just as any other parameter, but, we set its default value to -1, use it as an output and hide it as an input. All of this can be done from the advanced node settings of the parameter.

The order of operations in the loop is as follows:

  1. Parameters and iterators are fed to the loop.
  2. All nodes in the loop are executed.
  3. Break—if available—is executed.
  4. Generators—if available—is executed.
  5. Reassignment—if available—is executed.

So the breaking happens before generators or reassignment operators are executed.

Thanks for bringing this to our attentions, we shall add it in the documentation.

from animation_nodes_manual.

RodeyOrg avatar RodeyOrg commented on July 22, 2024

Thank you, in particular for the processing order.

Re the dummy parameter, the funny thing is, as mentioned I didn't know how to do this, but yet my program *apparently runs flawlessly without it.

I probably need to check the veracity with more outcome. But so far I think I get the results you do without this dummy value.

I can try to reread what you wrote to understand better what you are doing there with the dummy value (and subsequently why I need it in the Subprogram routine).

from animation_nodes_manual.

OmarEmaraDev avatar OmarEmaraDev commented on July 22, 2024

Added more information about the execution mechanism of loops in 1fadd09.

from animation_nodes_manual.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.