Skip to content
Moritz Brückner edited this page Nov 6, 2023 · 21 revisions

Logic Nodes Reference: Data nodes

This reference was generated automatically. Please do not edit the page directly, instead change the docstrings of the nodes in their Python files or the generator script and open a pull request. Thank you for contributing!

This reference was built for Armory 2023.11.


Node Categories

Camera

Get Camera Active

Returns the active camera.

See also:

Get Camera Active node

Sources: Python | Haxe

Get Camera Aspect

Returns the aspect of the given camera.

Get Camera Aspect node

Sources: Python | Haxe

Get Camera FOV

Returns the field of view (FOV) of the given camera.

See also:

Get Camera FOV node

Sources: Python | Haxe

Get Camera Ortho Scale

Returns the scale of the given camera.

Get Camera Ortho Scale node

Sources: Python | Haxe

Get Camera Start End

Returns the Start & End of the given camera.

See also:

Get Camera Start End node

Sources: Python | Haxe

Get Camera Type

Returns the camera Type: 0 : Perspective 1 : Ortographic .

Get Camera Type node

Sources: Python | Haxe

Set Camera Active

Sets the active camera.

See also:

Set Camera Active node

Sources: Python | Haxe

Set Camera Aspect

Sets the aspect of the given camera.

Set Camera Aspect node

Sources: Python | Haxe

Set Camera FOV

Sets the field of view (FOV) of the given camera.

See also:

Set Camera FOV node

Sources: Python | Haxe

Set Camera Ortho Scale

Sets the aspect of the given camera.

Set Camera Ortho Scale node

Sources: Python | Haxe

Set Camera Start End

Sets the Start & End of the given camera.

See also:

Set Camera Start End node

Sources: Python | Haxe

Set Camera Type

Sets the camera type.

Set Camera Type node

Sources: Python | Haxe

Material

Get Object Material

Returns the material of the given object.

Get Object Material node

Sources: Python | Haxe

Material

Stores the given material as a variable.

Material node

Sources: Python | Haxe

Set Material Image Param

Set an image value material parameter to the specified object.

See also:

Set Material Image Param node

Inputs:

  • Object: Object whose material parameter should change. Use Get Scene Root node to set parameter globally.
  • Per Object: - Enabled: Set material parameter specific to this object. Global parameter will be ignored.
    • Disabled: Set parameter globally, including this object.
  • Material: Material whose parameter to be set.
  • Node: Name of the parameter.
  • Image: Name of the image.

Sources: Python | Haxe

Set Material RGB Param

Set a color or vector value material parameter to the specified object.

See also:

Set Material RGB Param node

Inputs:

  • Object: Object whose material parameter should change. Use Get Scene Root node to set parameter globally.
  • Per Object: - Enabled: Set material parameter specific to this object. Global parameter will be ignored.
    • Disabled: Set parameter globally, including this object.
  • Material: Material whose parameter to be set.
  • Node: Name of the parameter.
  • Color: Color or vector input.

Sources: Python | Haxe

Set Material Value Param

Set a float value material parameter to the specified object.

See also:

Set Material Value Param node

Inputs:

  • Object: Object whose material parameter should change. Use Get Scene Root node to set parameter globally.
  • Per Object: - Enabled: Set material parameter specific to this object. Global parameter will be ignored.
    • Disabled: Set parameter globally, including this object.
  • Material: Material whose parameter to be set.
  • Node: Name of the parameter.
  • Float: float value.

Sources: Python | Haxe

Set Object Material (Deprecated)

DEPRECATED. This node is deprecated and will be removed in future versions of Armory. Please use the following node(s) instead: Set Object Material Slot.

Sets the material of the given object.

Set Object Material (Deprecated) node

Sources: Python | Haxe

Set Object Material Slot

TO DO.

Set Object Material Slot node

Sources: Python | Haxe

Light

Set Area Light Size

Sets the size of the given area light.

Set Area Light Size node

Sources: Python | Haxe

Set Light Color

Sets the color of the given light.

Set Light Color node

Sources: Python | Haxe

Set Light Strength

Sets the strenght of the given light.

Set Light Strength node

Sources: Python | Haxe

Set Spot Light Blend

Sets the blend of the given spot light.

Set Spot Light Blend node

Sources: Python | Haxe

Set Spot Light Size

Sets the size of the given spot light.

Set Spot Light Size node

Sources: Python | Haxe

Object

Get Distance

Returns the euclidian distance between the two given objects.

See also:

  • For distance between two locations, use the Distance operator in the Vector Math node.

Get Distance node

Sources: Python | Haxe

Get Object By Uid

Searches for a object with this uid in the current active scene and returns it.

Get Object By Uid node

Sources: Python | Haxe

Get Object Child

Returns the child of the given object by the child object's name.

Get Object Child node

Sources: Python | Haxe

Get Object Children

Returns the children of the given object.

Get Object Children node

Sources: Python | Haxe

Get Object Mesh

Returns the mesh of the given object.

Get Object Mesh node

Sources: Python | Haxe

Get Object Name

Returns the name of the given object.

Get Object Name node

Sources: Python | Haxe

Get Object Offscreen

Returns if the given object is offscreen. Don't works if culling is disabled.

Get Object Offscreen node

Sources: Python | Haxe

Get Object Parent

Returns the direct parent (nearest in the hierarchy) of the given object.

See also:

Get Object Parent node

Sources: Python | Haxe

Get Object Property

Returns the value of the given object property.

See also:

Get Object Property node

Sources: Python | Haxe

Get Object Uid

Returns the uid of the given object.

Get Object Uid node

Sources: Python | Haxe

Get Object Visible

Returns whether the given object or its visual components are visible.

See also:

Get Object Visible node

Sources: Python | Haxe

Get Object by Name

Searches for a object that uses the given name in the current active scene and returns it.

Get Object by Name node

Sources: Python | Haxe

Mesh

Stores the given mesh as a variable.

Mesh node

Sources: Python | Haxe

Object

Stores the given object as a variable.

Object node

Sources: Python | Haxe

Raycast Closest Object

it takes an objects array and returns true of false if at least one of those objects is touched at screen (x, y), the object that is touched and the (x,y, z) position of that touch if returned

Raycast Closest Object node

Sources: Python | Haxe

Raycast Object

it takes an object and returns true or false if the object is touched at screen (x, y) and the (x,y, z) position of that touch if returned

Raycast Object node

Sources: Python | Haxe

Remove Object

This node will remove a scene object or a scene object and its children.

Remove Object node

Inputs:

  • Object: Scene object to remove.
  • Remove Children: Remove scene object's children too.
  • Keep Children Transforms: Scene object's children will maintain current transforms when the scene object is removed, else children transforms revert to scene origin transforms.

Sources: Python | Haxe

Remove Object Parent

Removes the parent of the given object.

Remove Object Parent node

Sources: Python | Haxe

Self Object

Returns the object that owns the trait.

Self Object node

Sources: Python | Haxe

Set Object Mesh

Sets the mesh of the given object.

Set Object Mesh node

Sources: Python | Haxe

Set Object Name

Sets the name of the given object.

Set Object Name node

Sources: Python | Haxe

Set Object Parent

Sets the direct parent (nearest in the hierarchy) of the given object.

See also:

Set Object Parent node

Inputs:

  • Object: Object to be parented.
  • Parent: New parent object. Use Get Scene Root node to unparent object.
  • Keep Transform: Keep transform after unparenting from old parent
  • Parent Inverse: Preserve object transform after parenting to new object.

Sources: Python | Haxe

Set Object Property

Sets the value of the given object property.

This node can be used to share variables between different traits. If the trait(s) you want to access the variable with are on different objects, use the Global Object node to store the data. Every trait can access this one.

See also:

Set Object Property node

Sources: Python | Haxe

Set Object Shape Key

Sets shape key value of the object

Set Object Shape Key node

Sources: Python | Haxe

Set Object Visible

Sets whether the given object is visible.

See also:

Set Object Visible node

Inputs:

  • Object: Object whose property to be set.
  • Visible: Visibility.
  • Children: Set the visibility of the children too. Visibility is set only to the immediate children.
  • Recursive: If enabled, visibility of all the children in the tree is set. Ignored if Children is disabled.

Sources: Python | Haxe

Spawn Object

Spawns the given object if present in the current active scene. The spawned object has the same name of its instance, but they are treated as different objects.

Spawn Object node

Sources: Python | Haxe

Spawn Object By Name

Spawns an object bearing the given name, even if not present in the active scene

Spawn Object By Name node

Sources: Python | Haxe

Scene

Add Object to Collection

Add Object to a collection.

Add Object to Collection node

Sources: Python | Haxe

Collection

Returns the objects of the given collection as an array.

See also:

Collection node

Sources: Python | Haxe

Create Collection

Creates a collection.

Create Collection node

Sources: Python | Haxe

Get Collection

Searches for a collection of objects with the given name and outputs the collection's objects as an array, if found.

See also:

Get Collection node

Sources: Python | Haxe

Get Object Collection

Get Object collection.

Get Object Collection node

Sources: Python | Haxe

Get Scene Active

Returns the active scene.

Get Scene Active node

Sources: Python | Haxe

Get Scene Root

Returns the root object of the current scene.

Get Scene Root node

Sources: Python | Haxe

Global Object

Gives access to a global object which can be used to share information between different traits.

Global Object node

Sources: Python | Haxe

Remove Collection

Removes the given collection from the scene.

Remove Collection node

Sources: Python | Haxe

Remove Object from Collection

Remove Object from a collection.

Remove Object from Collection node

Sources: Python | Haxe

Remove Scene Active

Removes the active scene.

Remove Scene Active node

Sources: Python | Haxe

Set Scene Active

Sets the active scene.

Set Scene Active node

Sources: Python | Haxe

Spawn Collection

Spawns a new instance of the selected collection from the given scene. If the scene is empty or null, the current active scene is used. Each spawned instance has an empty owner object to control the instance as a whole (like Blender uses it for collection instances).

Spawn Collection node

Inputs:

  • Scene: Scene in which the collection belongs.
  • Collection: Collection to be spawned.
  • In: activates the node.
  • Transform: the transformation of the instance that should be spawned. Please note that the collection's instance offset is also taken into account.

Outputs:

  • Out: activated when a collection instance was spawned. It is not activated when no collection is selected.
  • Top-Level Objects: all objects in the last spawned collection that are direct children of the owner object of the collection's instance.
  • All Objects: all objects in the last spawned collection.
  • Owner Object: The owning object of the last spawned collection's instance.

Sources: Python | Haxe

Spawn Scene

Spawns the given scene.

Spawn Scene node

Sources: Python | Haxe

Trait

Add Trait to Object

Adds trait to the given object.

Add Trait to Object node

Sources: Python | Haxe

Get Object Trait

Searches for a trait with the specified name which is applied to the given object and returns that trait.

Get Object Trait node

Sources: Python | Haxe

Get Object Traits

Returns all traits from the given object.

Get Object Traits node

Sources: Python | Haxe

Get Trait Name

Returns the name and the class type of the given trait.

Get Trait Name node

Sources: Python | Haxe

Get Trait Paused

Returns whether the given trait is paused.

Get Trait Paused node

Sources: Python | Haxe

Pause Trait (Deprecated)

DEPRECATED. This node is deprecated and will be removed in future versions of Armory. Please use the following node(s) instead: Set Trait Paused.

Pauses the given trait.

Pause Trait (Deprecated) node

Sources: Python | Haxe

Remove Trait

Removes the given trait.

Remove Trait node

Sources: Python | Haxe

Remove Trait from Object

Remove trait from the given object.

Remove Trait from Object node

Sources: Python | Haxe

Resume Trait (Deprecated)

DEPRECATED. This node is deprecated and will be removed in future versions of Armory. Please use the following node(s) instead: Set Trait Paused.

Resumes the given trait.

Resume Trait (Deprecated) node

Sources: Python | Haxe

Self Trait

Returns the trait that owns this node.

Self Trait node

Sources: Python | Haxe

Set Trait Paused

Sets the paused state of the given trait.

Set Trait Paused node

Sources: Python | Haxe

Trait

Stores the given trait as a variable. If the trait was not found or was not exported, an error is thrown (more information).

Trait node

Sources: Python | Haxe

Network

Close Connection

Close connection on the network

Close Connection node

Sources: Python | Haxe

Create Client

Network client to connect to an existing host

Create Client node

Sources: Python | Haxe

Create Host

Network host for other clients to connect

Create Host node

Sources: Python | Haxe

Host Close Client

Close a client from a host connection by ID

Host Close Client node

Sources: Python | Haxe

Host Get IP

Return an IP from the ID of a connection

Host Get IP node

Sources: Python | Haxe

Http Request

Network Http Request

Http Request node

Sources: Python | Haxe

Message Parser

Parses message type from data packet

Message Parser node

Sources: Python | Haxe

Network Event

Triggers an event from the network getting both message data and sender ID

Network Event node

Sources: Python | Haxe

Open Connection

Open connection on the network

Open Connection node

Sources: Python | Haxe

Send Message

Send messages directly to a host as a client or to all of the network clients connected to a host send messages directly

Send Message node

Sources: Python | Haxe

Clone this wiki locally