Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The first scripts are mainly simple examples to give an idea of what is happening while the code is executed. In the beginning there are not always visible results in your viewport, just long lists of numbers in the Messages window. When you have to deal with scripting, this window will soon become a very close friend, because there you will find all the results, warnings and errors. Whenever you have to check the plausibility of your script’s calculations and results, there should be an output to the messages "Messages" window. The process of erasing errors is called debugging. RealFlow does not offer a complete visual programming environment, such as Visual C/C++, but has basic debugging functions with a specification of the affected line of code. Please remember that tabbing is a very important issue with Python. The indents and spaces in front of a line are not only for making your script more readable and more clearly arranged; they are also part of the syntax. You should always use the Tab key to create the indents, never the space bar. Scripts from external resources, in particular, might give you syntax errors because of wrongly input spaces. You should always check the indents.

...