...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
object object_node = scene.getObject("object _name") daemon daemon_node = scene.getDaemon("daemon _name") camera camera_node = scene.getCamera("camera _name") mesh_node = scene.getMesh("mesh _name") wave_node = scene.getRealwave("wave _name") domain_node = scene.getGridDomain("domain _name") mist_node = scene.getMist("mist _name") |
The names are simply the particular names from the node window. If the name inside the brackets and the affected node name are not identical, a syntax error will occur. Please note that they always have to stand within quotation marks, unless you are using a variable to define the name:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
object_name = "Vase01" object _node = scene.getObject(object_name) |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
object_node = scene.getObject("Vase01") |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
emitter = scene.getEmitter("Circle01") position = emitter.getParameter("Position") |
With this construction you can access the position of the object that is stored under emitter: “Circle01”. If you take alook 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:
...