Prism

lumin. Prism

Represents the bounded volume within which the Scenegraph renders. Prisms are created via
the App::requestNewPrism function.

Methods

createAll(objectModelName) → {lumin.Node}

Create all objects from a loaded object model and
return them as children of newly created root Node.

Parameters:
Name Type Description
objectModelName string

The name of the object model.

Returns:

Root node containing all objects from model or nullptr if creation failed

Type
lumin.Node

createAnimationBlendSetupResourceId(a_fileName, a_absolutePathopt, a_descriptoropt, a_basePathopt) → {number}

Creates animation blend setup resource

Parameters:
Name Type Attributes Default Description
a_fileName string

File name of the resource to load. By default assumed to be a relative path
from the executable file.

a_absolutePath boolean <optional>
false

Flag that a_fileName is an absolute path name, instead of a relative path.

a_descriptor number <optional>
-1

optional file descriptor that points to a resource.
If passed to the resource the resource takes ownership of the File Descriptor.

a_basePath string <optional>
null

If you are loading a resource from an absolute path, and that path !=
The current process path, set this field to the equivalent base path in the other
client directory. This allows path relative dependencies to solve a fully
qualified (absolute) path outside of the current process. This value defaults to
the currently executing process root.

NOTE: In case a Standard resource is already created. And a new resource is created with the same filename but instanced,
it will not overwrite the standard resource. In that case, you will have to delete that resource, and post that, create
a new instanced resource.
This is not required if you want to use an instanced resource as a standard resource.

Returns:

ID for the Resource

Type
number

createAnimationResourceId(a_fileName, a_absolutePathopt, a_descriptoropt, a_basePathopt) → {number}

Creates animation resource

Parameters:
Name Type Attributes Default Description
a_fileName string

File name of the resource to load. By default assumed to be a relative path
from the executable file.

a_absolutePath boolean <optional>
false

Flag that a_fileName is an absolute path name, instead of a relative path.

a_descriptor number <optional>
-1

optional file descriptor that points to a resource.
If passed to the resource the resource takes ownership of the File Descriptor.

a_basePath string <optional>
null

If you are loading a resource from an absolute path, and that path !=
The current process path, set this field to the equivalent base path in the other
client directory. This allows path relative dependencies to solve a fully
qualified (absolute) path outside of the current process. This value defaults to
the currently executing process root.

NOTE: In case a Standard resource is already created. And a new resource is created with the same filename but instanced,
it will not overwrite the standard resource. In that case, you will have to delete that resource, and post that, create
a new instanced resource.
This is not required if you want to use an instanced resource as a standard resource.

Returns:

ID for the Resource

Type
number

createAnimationSetResourceId(a_fileName, a_absolutePathopt, a_descriptoropt, a_basePathopt) → {number}

Creates animation set resource

Parameters:
Name Type Attributes Default Description
a_fileName string

File name of the resource to load. By default assumed to be a relative path
from the executable file.

a_absolutePath boolean <optional>
false

Flag that a_fileName is an absolute path name, instead of a relative path.

a_descriptor number <optional>
-1

optional file descriptor that points to a resource.
If passed to the resource the resource takes ownership of the File Descriptor.

a_basePath string <optional>
null

If you are loading a resource from an absolute path, and that path !=
The current process path, set this field to the equivalent base path in the other
client directory. This allows path relative dependencies to solve a fully
qualified (absolute) path outside of the current process. This value defaults to
the currently executing process root.

NOTE: In case a Standard resource is already created. And a new resource is created with the same filename but instanced,
it will not overwrite the standard resource. In that case, you will have to delete that resource, and post that, create
a new instanced resource.
This is not required if you want to use an instanced resource as a standard resource.

Returns:

ID for the Resource

Type
number

createAudioNode() → {lumin.AudioNode}

Create a new AudioNode.
After calling this createAudioNode(), must call one of the AudioNode::createSoundXxxxX() methods
to create a specific type of audio node.

Returns:

New AudioNode on success; nullptr on failure.

Type
lumin.AudioNode

createDefaultText2dNode(desc, styleopt) → {lumin.Text2dNode}

Create a 2D text node using the Magic Leap UI font (regular weight).

Parameters:
Name Type Attributes Default Description
desc lumin.Text2dDesc

Information about the Text2dNode to create.

style lumin.resources.FontStyle <optional>
resources.FontStyle.kNormal

Either normal or italic style are supported.

Returns:

The new Text2dNode.

Type
lumin.Text2dNode

createFont2dResourceId(fontDesc, fontFile, a_absolutePathopt) → {number}

Create a Font2dResource with the given description.

Parameters:
Name Type Attributes Default Description
fontDesc lumin.glyph.Font2dDesc

Initialization parameters for the resource. For
reasonable default values, use the DEFAULT static member.

fontFile string

The font file from which to load the glyphs. By default assumed to be a relative
path from the executable file.

a_absolutePath boolean <optional>
false

Flag that fontFile is an absolute path name, instead of a relative path.

Returns:

The new Font2dResource.

Type
number

createInstancedModelResourceId(a_fileName, a_maxInstances, a_absolutePathopt, a_descriptoropt, a_basePathopt) → {number}

Creates instanced model resource

Parameters:
Name Type Attributes Default Description
a_fileName string

File name of the resource to load. By default assumed to be a relative path
from the executable file.

a_maxInstances number

MaximumInstances the resource can have

a_absolutePath boolean <optional>
false

Flag that a_fileName is an absolute path name, instead of a relative path.

a_descriptor number <optional>
-1

optional file descriptor that points to a resource.
If passed to the resource the resource takes ownership of the File Descriptor.

a_basePath string <optional>
null

If you are loading a resource from an absolute path, and that path !=
The current process path, set this field to the equivalent base path in the other
client directory. This allows path relative dependencies to solve a fully
qualified (absolute) path outside of the current process. This value defaults to
the currently executing process root.

NOTE: In case a Standard resource is already created. And a new resource is created with the same filename but instanced,
it will not overwrite the standard resource. In that case, you will have to delete that resource, and post that, create
a new instanced resource.
This is not required if you want to use an instanced resource as a standard resource.

Returns:

ID for the Resource

Type
number

createLightNode() → {lumin.LightNode}

Creates directional light node

Returns:

The new LightNode

Type
lumin.LightNode

createLineNode() → {lumin.LineNode}

Create a new LineNode.

Returns:

New LineNode on success; nullptr on failure.

Type
lumin.LineNode

createLoadedFileAudioResourceId(a_fileName, a_absolutePathopt, a_descriptoropt, a_basePathopt) → {number}

Creates audio resource by loading the entire audio file in the memory.
Use this method for audio files which are not too big to hog memory.
For big files you may use the createStreamedFileAudioResource method.

Parameters:
Name Type Attributes Default Description
a_fileName string

File name of the resource to load. By default assumed to be a relative path
from the executable file.

a_absolutePath boolean <optional>
false

Flag that a_fileName is an absolute path name, instead of a relative path.

a_descriptor number <optional>
-1

optional file descriptor that points to a resource.
If passed to the resource the resource takes ownership of the File Descriptor.

a_basePath string <optional>
null

If you are loading a resource from an absolute path, and that path !=
The current process path, set this field to the equivalent base path in the other
client directory. This allows path relative dependencies to solve a fully
qualified (absolute) path outside of the current process. This value defaults to
the currently executing process root.

Returns:

Resource ID

Type
number

createMaterialResourceId(a_fileName, a_localScopeOnlyopt, a_absolutePathopt) → {number}

Creates a MaterialResource

Parameters:
Name Type Attributes Default Description
a_fileName string

File name of the resource to load. By default assumed to be a relative path
from the executable file.

a_localScopeOnly boolean <optional>
false

The scope of this material. When set to true the kmat's contained in the material
will not be added to the prism's list of materials for general resolve.

a_absolutePath boolean <optional>
false

Flag that a_fileName is an absolute path name, instead of a relative path.

Returns:

resource instance

Type
number

createModelAttachmentNode(modelNode, boneName) → {lumin.ModelAttachmentNode}

Create a new ModelAttachmentNode.

Parameters:
Name Type Description
modelNode lumin.ModelNode

the ModelNode to which the bone is attached

boneName string

the name of the bone

Returns:

New ModelAttachmentNode on success; nullptr on failure.

Type
lumin.ModelAttachmentNode

createModelNode(resourceId) → {lumin.ModelNode}

Create a new ModelNode.

Parameters:
Name Type Description
resourceId number

optional resource Id to use for the node.

Returns:

New ModelNode on success; nullptr on failure.

Type
lumin.ModelNode

createModelResourceId(a_fileName, a_importScale, a_absolutePathopt, a_descriptoropt, a_basePathopt) → {number}

Creates a ModelResource

Parameters:
Name Type Attributes Default Description
a_fileName string

File name of the resource to load. By default assumed to be a relative path
from the executable file.

a_importScale number

The scale that will be applied to this resource

a_absolutePath boolean <optional>
false

Flag that a_fileName is an absolute path name, instead of a relative path.

a_descriptor number <optional>
-1

optional file descriptor that points to a resource.
If passed to the resource the resource takes ownership of the File Descriptor.

a_basePath string <optional>
null

If you are loading a resource from an absolute path, and that path !=
The current process path, set this field to the equivalent base path in the other
client directory. This allows path relative dependencies to solve a fully
qualified (absolute) path outside of the current process. This value defaults to
the currently executing process root.

Returns:

ID for the Resource

Type
number

createNode(objectModelName, objectNameopt) → {lumin.Node}

Create a node from a loaded object model.

Parameters:
Name Type Attributes Default Description
objectModelName string

The name of the object model.

objectName string <optional>
""

The name of an object in the object model. If empty, the first object in the object model is used.

Returns:

Newly created node or nullptr if creation failed.

Type
lumin.Node

createNode() → {lumin.Node}

Creates a node of the base type, suitable for organizing a group of child nodes.

Returns:
Type
lumin.Node

createObjMtlResourceId(a_fileName, a_absolutePathopt) → {number}

Creates mtl resource

Parameters:
Name Type Attributes Default Description
a_fileName string

File name of the resource to load. By default assumed to be a relative path
from the executable file.

a_absolutePath boolean <optional>
false

Flag that a_fileName is an absolute path name, instead of a relative path.

Returns:

ID for the Resource

Type
number

createParticleNode(packageResource) → {lumin.ParticleNode}

Create a new ParticleNode.

Parameters:
Name Type Description
packageResource number

resource Id of the particle effect package to use.

Returns:

New ParticleNode on success; nullptr on failure.

Type
lumin.ParticleNode

createParticlePackageResourceId(a_fileName, a_absolutePathopt) → {number}

Creates particle package resource

Parameters:
Name Type Attributes Default Description
a_fileName string

File name of the resource to load. By default assumed to be a relative path
from the executable file.

a_absolutePath boolean <optional>
false

Flag that a_fileName is an absolute path name, instead of a relative path.

Returns:

ID for the Resource

Type
number

createPlanarEGLResourceId(a_widthopt, a_heightopt) → {number}

Creates a PlanarResource of given size which provides access to EGL Context and EGL Surface.

Parameters:
Name Type Attributes Default Description
a_width number <optional>
512

The Width 1 to 2048

a_height number <optional>
512

The Height 1 to 2048

Returns:

The new PlanarResource

Type
number

createQuadNode(resourceId) → {lumin.QuadNode}

Create a new QuadNode.

Parameters:
Name Type Description
resourceId number

optional resource Id to use for the node.

Returns:

New QuadNode on success; nullptr on failure.

Type
lumin.QuadNode

createSpriteNode(resourceId) → {lumin.SpriteNode}

Create a new SpriteNode from a texture pack resource.

Parameters:
Name Type Description
resourceId number

id of the resource that contains the frames for the sprite.

Returns:

New SpriteNode on success; nullptr on failure.

Type
lumin.SpriteNode

createStreamedFileAudioResourceId(a_fileName, a_absolutePathopt, a_descriptoropt, a_basePathopt) → {number}

Create audio resource with streamed file.
Use this resource for big audio files where the audio file is loaded only chunk at a time in then memory.
Normally audio resource will be fully loaded in memory, in which case use createLoadedFileAudioResource() method.

Uses same params as createLoadedFileAudioResource method.

Parameters:
Name Type Attributes Default Description
a_fileName string
a_absolutePath boolean <optional>
false
a_descriptor number <optional>
-1
a_basePath string <optional>
null
Returns:

Resource ID

Type
number

createText2dNode(fontResourceId, desc) → {lumin.Text2dNode}

Create a 2D text node with the given font and properties
encapsulated in the description object.

Parameters:
Name Type Description
fontResourceId number

Id of a FontResource to use.

desc lumin.Text2dDesc

Information about the Text2dNode to create.

Returns:

The new Text2dNode.

Type
lumin.Text2dNode

createTexturePackResourceId(desc, absolutePathopt) → {number}

Create and initialize a TexturePackResource.

Parameters:
Name Type Attributes Default Description
desc lumin.multipack.Descriptor

user-created descriptor object, which includes the location of the data.

absolutePath boolean <optional>
false

flag that the location is an absolute path instead of a relative path.

Returns:

The new TexturePackResource.

Type
number

createTexturePackResourceId(a_vMetaDataNames, a_params, absolutePathopt) → {number}

Create and initialize a TexturePackResource.

Parameters:
Name Type Attributes Default Description
a_vMetaDataNames Array.<string>

a list of json files that define the TexturePack.

a_params lumin.multipack.Params

control how the textures are rendered;

absolutePath boolean <optional>
false

flag that the location is an absolute path instead of a relative path.

Returns:

The new TexturePackResource.

Type
number

createTexturePackResourceId(directory, params, absolutePathopt) → {number}

Create and initialize a TexturePackResource.

Parameters:
Name Type Attributes Default Description
directory string

file-system directory where the data to initialize the resource is located.

params lumin.multipack.Params

control how the textures are rendered; see PackedTextureParams::DEFAULT.

absolutePath boolean <optional>
false

flag that the location is an absolute path instead of a relative path.

Returns:

The new TexturePackResource.

Type
number

createTextureResourceId(tex2dDesc, imageFile, a_absolutePathopt, a_fileDescriptoropt) → {number}

Create a TextureResource with the given description from the PNG image file.

Parameters:
Name Type Attributes Default Description
tex2dDesc lumin.Desc2d

Initialization parameters for the resource. For reasonable default values,
use the DEFAULT static member.

imageFile string

PNG or JPEG-encoded image file. By default assumed to be a relative path
from the executable file.

a_absolutePath boolean <optional>
false

Flag that pngFile is an absolute path name, instead of a relative path.

a_fileDescriptor number <optional>
-1

optional file descriptor that points to a png resource.
If passed to the resource the resource takes ownership of the File Descriptor.

Returns:

The new TextureResource.

Type
number

createTransformNode(localTransform) → {lumin.TransformNode}

Create a new TransformNode.

Parameters:
Name Type Description
localTransform mat4

The local transform of the new node;
use glm::mat4() for the identity matrix.

Returns:

New TransformNode on success; nullptr on failure.

Type
lumin.TransformNode

createTree(objectModelName, objectNameopt) → {lumin.Node}

Create a node tree from a loaded object model.

Parameters:
Name Type Attributes Default Description
objectModelName string

The name of the object model.

objectName string <optional>
""

The name of an object in the object model. A node tree will be created using this node and its descendants. If empty, the first object in the object model is used.

Returns:

Root node of a newly created node tree or nullptr if creation failed.

Type
lumin.Node

createVideoNode(a_widthopt, a_heightopt) → {lumin.VideoNode}

Creates a VideoNode with the given resolution and display mode.

Parameters:
Name Type Attributes Default Description
a_width number <optional>
512

The surface resolution width 1 to 2048

a_height number <optional>
512

The surface resolution height 1 to 2048

Returns:

The new VideoNode

Type
lumin.VideoNode

deleteNode(a_pNode)

Tells the Prism to delete this Node and all its children

Parameters:
Name Type Description
a_pNode lumin.Node

The Node that will be deleted

destroyResource(a_iID)

Destroys a Resource with a given ResourceIDType.
Paired with createResource(). For each create() there should be a destroy().

Parameters:
Name Type Description
a_iID number

ID of the resource

enableVisualState(value)

Enable//Disable the Prism Visual state changes

Parameters:
Name Type Description
value boolean

Enable/Disable the state changing

findNode(a_name, a_parent) → {lumin.Node}

Find a Node by name.

Parameters:
Name Type Description
a_name string

The Node name to look for

a_parent lumin.Node

The node which to look for a decendant node of.

Returns:
Type
lumin.Node

getHandGestureHoverDistance() → {number}

Returns:

the distance threshold the hand gesture cursor must be at for a node
register as hovered

Type
number

getHandGestureTouchDistance() → {number}

Returns:

the distance threshold the hand gesture cursor must be at for a node
register as touched

Type
number

getNode(a_id) → {lumin.Node}

Get a Node by its Id

Parameters:
Name Type Description
a_id number

The Node id to look for

Returns:

the Node

Type
lumin.Node

getPosition() → {vec3}

Get the position of this prism in world space

Returns:

Prism position

Type
vec3

getPrismId() → {number}

Get the Prism ID

Returns:

Prism ID

Type
number

getPrismType() → {lumin.PrismType}

Returns the Prism type.

Returns:

The Prism type.

Type
lumin.PrismType

getResource(name) → {number}

Acquire loaded resource mapped to the given name in the declarative system.

Parameters:
Name Type Description
name string

The name of the resource.

Returns:

ID of named resource or INVALID_RESOURCE_ID if no resource is loaded with that name.

Type
number

getResource(a_iID) → {lumin.Resource}

Get the resource with the given ID. Should only be called on the render
thread for resources related to rendering.

Parameters:
Name Type Description
a_iID number

the unique ID of the resource to find.

Returns:

pointer to the resource or else nullptr if not found.

Type
lumin.Resource

getRootNode() → {lumin.RootNode}

Get the root node of the scene graph. The node version will be the last seen version.

Returns:

the root node

Type
lumin.RootNode

getRotation() → {quat}

Get the rotation of this prism in world space

Returns:

Prism rotation

Type
quat

getScale() → {vec3}

Get the scale of this prism

Returns:

Prism scale

Type
vec3

getSize() → {vec3}

Get the Bounding size

Returns:

Size (width,height,depth)

Type
vec3

getSound(name) → {lumin.Sound}

Acquire loaded sound mapped to the given name in the declarative system.

Parameters:
Name Type Description
name string

The name of the sound.

Returns:

Pointer to named sound or nullptr if no sound is loaded with that name.

Type
lumin.Sound

getTransform() → {mat4}

Get the Real World Transform of this prism

Returns:

Prism transform matrix

Type
mat4

getUserAutoHapticGesture() → {number}

Gives the current set of Auto Haptic Gestures for this prism
required by User

Returns:
  • Active DeviceGestureFlags
Type
number

getUserHandGesture() → {number}

Gives the current set of Hand Gesture for this prism
required by User

Returns:
  • Active HandGesture Flags
Type
number

isPrismSelected() → {boolean}

Get whether this Prism is selected.

Returns:

the selected state of the prism.

Type
boolean

loadObjectModel(filePath) → {string}

Load an object model into memory.

Parameters:
Name Type Description
filePath string

Path to object model file.

Returns:

If successful this string will be populated with the object model's name.

Type
string

loadResourceModel(filePath) → {boolean}

Load a resource model into memory, and create its defined resources.

Parameters:
Name Type Description
filePath string

Path to resource model file.

Returns:

True if the resource model was successfully loaded.

Type
boolean

loadSoundModel(filePath) → {boolean}

Load a sound model into memory, and create its defined sounds.

Parameters:
Name Type Description
filePath string

Path to sound model file.

Returns:

True if the sound model was successfully loaded.

Type
boolean

objectModelLoaded(name) → {boolean}

Determine whether or not an object model is loaded.

Parameters:
Name Type Description
name string

The name of the object model.

Returns:

True if a object model with the given name is loaded.

Type
boolean

onDestroyEventSub(callback) → {lumin.utils.CallbackID}

Returns an Event that will be triggered right before this prism is destroyed.

This event will be dispatched after PrismController::onDetachPrism is called
(if there is a PrismController attached to the prism).

Parameters:
Name Type Description
callback callable
Returns:
Type
lumin.utils.CallbackID

onDestroyEventUnsub(callbackID) → {boolean}

Parameters:
Name Type Description
callbackID lumin.utils.CallbackID
Returns:
Type
boolean

parseObjectModel(modelString) → {string}

Load an object model from a string into memory.

Parameters:
Name Type Description
modelString string

Object model data as a string.

Returns:

If successful this string will be populated with the object model's name.

Type
string

retainEyeTrackingUpdates() → {lumin.PrismDataHandle}

Retain this shared pointer to force the prism to receive eye tracking updates.

NOTE: Must be called on client main thread.

Returns:
Type
lumin.PrismDataHandle

retainFloorUpdates() → {lumin.PrismDataHandle}

Retain this shared pointer to force the volume to receive floor updates.

NOTE: Must be called on client main thread.

Returns:
Type
lumin.PrismDataHandle

retainFPSMode() → {lumin.KEmpty}

Retain this shared pointer to force the prism to enter fps mode

Returns:
Type
lumin.KEmpty

retainHeadposeUpdates() → {lumin.PrismDataHandle}

Retain this shared pointer to force the prism to receive headpose updates.

NOTE: Must be called on client main thread.

Returns:
Type
lumin.PrismDataHandle

setExcludeFromAutoFocus(exclude)

If true, this prism will be excluded from the server's auto focus calculation

Parameters:
Name Type Description
exclude boolean

setHandGestureFilterConfidenceLevel(confidenceLevel)

Set the input service hand gesture confidence level filter

Parameters:
Name Type Description
confidenceLevel number

the confidence level filter (between 0.0f and 1.0f, default is 0.0f)

setHandGestureFilterPollRate(pollRate)

Set the input service hand gesture poll rate

Parameters:
Name Type Description
pollRate number

the poll rate (in Hz, default is 20.0f)

setHandGestureFilterPositionDelta(positionDelta)

Set the input service hand gesture position delta filter

Parameters:
Name Type Description
positionDelta number

the position delta (in world space meters, default is 0.03f)

setHandGestureHoverDistance(distance)

Set how close the hand gesture cursor must be to a node for a hover to register

Parameters:
Name Type Description
distance number

The hover distance threshold

setHandGestureTouchDistance(distance)

Set how close the hand gesture cursor must be to a node for a touch to register

Parameters:
Name Type Description
distance number

The touch distance threshold

setPrismBloomStrength(a_prismBloomStrength)

Set the Bloom Strength for this prism. Default is set to 1.0

Parameters:
Name Type Description
a_prismBloomStrength number

Bloom strength that will be applied to all the RenderNodes of the prism

setPrismController(rootPrismController)

Sets the root prism controller that will receive event and update loop callbacks
for this prism.

The root prism controller's scene graph will be attached to the prism root node.

Parameters:
Name Type Description
rootPrismController lumin.PrismController

The prism controller to use or nullptr to just remove
the current root prism controller

setVolumeBloomStrength(a_volumeBloomStrength)

deprecated, please use setPrismBloomStrength instead

Parameters:
Name Type Description
a_volumeBloomStrength number

startTrackHandGesture(a_uieHandGesture)

Tracks a set of Hand gesture directed at this prism

when Gesture occurs it is deliverd on the eventCallback

Parameters:
Name Type Description
a_uieHandGesture number

The HandGestureFlags to start Tracking

startTrackingAutoHapticOnGesture(a_uieGesture)

Tracks a set of gestures we wish to enable auto haptics on

Parameters:
Name Type Description
a_uieGesture number

The DeviceGestureFlags to start Tracking

stopTrackHandGesture(a_uieHandGesture)

Stops Tracking a set of Hand Gesture

Parameters:
Name Type Description
a_uieHandGesture number

The HandGestureFlags to stop Tracking

stopTrackingAutoHapticOnGesture(a_uieGesture)

Stops tracking a set of gestures for auto haptics

Parameters:
Name Type Description
a_uieGesture number

The DeviceGestureFlags to stop Tracking

unloadObjectModel(name) → {boolean}

Unload cached object model.

Parameters:
Name Type Description
name string

The name of the object model.

Returns:

True if an object model with the given name was found and unloaded.

Type
boolean

unloadResourceModels()

Unload all resource models.
Current behaviour is to clear all name to resource mappings, but will not destroy resources.

unloadSoundModels()

Unload all sound models.
Current behaviour is to clear all sound mappings and destroy sound instances.

updateNode(node, objectModelName, objectNameopt) → {boolean}

Update a node with property values from an object in an object model.

Parameters:
Name Type Attributes Default Description
node lumin.Node

The node to be updated.

objectModelName string

The name of a loaded object model.

objectName string <optional>
""

The name of an object in the object model. If empty, the first object in the object model is used.

Returns:

True if the object model is loaded, the object was found in the object model and all object properties were successfully updated to the node.

Type
boolean

updateNodeFromString(node, modelString, objectName) → {boolean}

Update a node with property values from an object in an object model as a string.

Parameters:
Name Type Description
node lumin.Node

The node to be updated.

modelString string

The object model as a string.

objectName string

The name of an object in the object model. If empty, the first object in the object model is used.

Returns:

True if the object was found in the object model and all object properties were successfully updated to the node.

Type
boolean