Commit 1526883c authored by Jan Möbius's avatar Jan Möbius
Browse files

Document object iteration in scripting refs #394

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13557 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c088b524
......@@ -3,6 +3,21 @@
TODO: OpenFlipper Scripting and examples.
\section scripting_iterating
In the scripting system you can also iterate over objects in the scene.
\code
// Get a list of all target triangle meshes in the scene
var list = datacontrol.getTargetObjects(DataType("TriangleMesh"));
// Print the names of all target objects
for( object in list )
{
print(datacontrol.getObjectName(list[object]))
}
\endcode
\section scripting_datattypes DataTypes
In the scripting system the type DataType is already known. You can do for example
\code
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment