class Scene
package iron
Static variables
Static methods
staticgetRawObjectByName(format:TSceneFormat, name:String):TObj
Returns an object in scene data format ('TObj') based on its name. Returns 'null' if the object does not exist.
Parameters:
format | The raw scene data |
---|---|
name | The name of the object |
Returns:
TObj
Constructor
Variables
Methods
createObject(o:TObj, format:TSceneFormat, parent:Object, parentObject:TObj, done:Object ‑> Void):Void
getChildren(recursive:Bool = false):Array<Object>
returnMeshObject(object_file:String, data_ref:String, sceneName:String, armature:Armature, materials:Vector<MaterialData>, parent:Object, parentObject:TObj, o:TObj, done:Object ‑> Void):Void
spawnObject(name:String, parent:Null<Object>, done:Null<Object ‑> Void>, spawnChildren:Bool = true, ?srcRaw:TSceneFormat):Void
Spawn a new object instance in the scene.
Parameters:
name | The name of the object as defined in Blender. |
---|---|
parent | The parent object this new object should be attached to (optional, use |
done | Function to run after the spawn is completed (optional). Useful to change properties of the object after spawning. |
spawnChildren | Also spawn the children of the newly spawned object (optional, default is |
srcRaw | If not |