Versions Compared

Key

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

...

With this construction you can access the position of the object that is stored under emitter: “Circle01”. If you take  alook take a look at the position parameter, you can see that it consists of three coordinates X, Y and Z. A variable with three coordinates or scalars is called a vector. If you want to read out or manipulate the individual values of the position vector, you have to follow the known concept:

Code Block
themeEclipse
languagepython
linenumberstrue
emitter    = scene.get_PB_Emitter("Circle01")
position   = emitter.getParameter("Position")
position_x = position.getX()
position_y = position.getY()
position_z = position.getZ()

 

Now the X, Y, and Z position values are stored in individual variables and they are ready to be used for further calculations and manipulation. This concept is valid for all the other node types in RealFlow, e.g. cameras or objects.

...