Versions Compared

Key

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

...

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())

...