...
You will learn how to define and assign variables, work with different data types like integers or vectors, address RealFlow parameters, perform calculations, and manipulate loop through individual particles or scene nodes.
A long list of example scripts help helps you to get started.
Available Python Commands
...
- A-Z, a-z, 0-9, and the underscore _
- Avoid special characters like ä, É, ∂, §, ß, etc.
- If you want to separate a variables name use the underscore, e.g.
gravity_strength
. - Never use blanks, colons, or dots!
- Python is case-sensitive and there is a difference between
emitter_resolution
andEmitter_Resolution
.
Leading Spaces and Indents
Python code is structured through leading spaces and indents. For obvious reasons they are the most common source of syntax errors.
The first This code example prints out a syntax error, the second one works:
Code Block |
---|
sceneObjects = scene.getObjects() for singleObject in sceneObjects: scene.message(singleObject.getName()) |
...