Module: objects

Objects API.

Summary

Methods

Type Definitions

Detailed Description

Methods

copy(obj, name, deep_copyopt) → {Object3D}

Copy MESH object.
Parameters:
Name Type Attributes Default Description
obj Object3D Object 3D
name String New unique object name
deep_copy Boolean <optional>
false Copy WebGL buffers
Returns:
New object.
Type
Object3D
Source:

get_dg_parent(obj) → (nullable) {Object3D}

Get DupliGroup parent object.
Parameters:
Name Type Description
obj Object3D Child object
Returns:
Parent object
Type
Object3D
Source:

get_meta_tags(obj) → {ObjectMetaTags}

Get the Blender-assigned meta tags from the object.
Parameters:
Name Type Description
obj Object3D Object 3D
Returns:
Object meta tags
Type
ObjectMetaTags
Source:

get_nodemat_rgb(obj, name_list, destopt) → {RGB}

Get color of the RGB node in the object's material.
Parameters:
Name Type Attributes Description
obj Object3D Object 3D
name_list Array.<String> List consisting of the material name, the names of nested node groups (if any) and the name of the RGB node itself
dest Vec3 <optional>
Destination color
Returns:
Destination color
Type
RGB
Deprecated:
Source:

get_nodemat_value(obj, name_list) → {Number}

Get value of the Value node in the object's material.
Parameters:
Name Type Description
obj Object3D Object 3D
name_list Array.<String> List consisting of the material name, the names of nested node groups (if any) and the name of the Value node itself. Should have at least 2 elements ["Mat","Node"]
Returns:
Value.
Type
Number
Deprecated:
Source:

get_outlining_objects() → {Array.<Object3D>}

Get all scene outlining objects.
Returns:
Array with outlining objects.
Type
Array.<Object3D>
Source:

get_parent(obj) → (nullable) {Object3D}

Get parent object.
Parameters:
Name Type Description
obj Object3D Child object
Returns:
Parent object
Type
Object3D
Source:

get_selectable_objects() → {Array.<Object3D>}

Get all scene selectable objects.
Returns:
Array with selectable objects.
Type
Array.<Object3D>
Source:

is_armature(obj) → {Boolean}

Check if the object is an ARMATURE.
Parameters:
Name Type Description
obj Object3D Object 3D
Returns:
Checking result.
Type
Boolean
Source:

is_camera(obj) → {Boolean}

Check if the object is a CAMERA.
Parameters:
Name Type Description
obj Object3D Object 3D
Returns:
Checking result.
Type
Boolean
Source:

is_dynamic(obj) → {Boolean}

Check if object is dynamic.
Parameters:
Name Type Description
obj Object3D Object 3D
Returns:
Checking result.
Type
Boolean
Source:

is_empty(obj) → {Boolean}

Check if the object is an EMPTY.
Parameters:
Name Type Description
obj Object3D Object 3D
Returns:
Checking result.
Type
Boolean
Source:

is_lamp(obj) → {Boolean}

Check if the object is a LAMP.
Parameters:
Name Type Description
obj Object3D Object 3D
Returns:
Checking result.
Type
Boolean
Source:

is_line(obj) → {Boolean}

Check if the object is a LINE.
Parameters:
Name Type Description
obj Object3D Object 3D
Returns:
Checking result.
Type
Boolean
Source:

is_mesh(obj) → {Boolean}

Check if the object is a MESH.
Parameters:
Name Type Description
obj Object3D Object 3D
Returns:
Checking result.
Type
Boolean
Source:

is_speaker(obj) → {Boolean}

Check if the object is a SPEAKER.
Parameters:
Name Type Description
obj Object3D Object 3D
Returns:
Checking result.
Type
Boolean
Source:

is_world(obj) → {Boolean}

Check if the object is a WORLD.
Parameters:
Name Type Description
obj Object3D Object 3D
Returns:
Checking result.
Type
Boolean
Source:

set_nodemat_rgb(obj, name_list, r, g, b)

Set color of the RGB node in the object's material.
Parameters:
Name Type Description
obj Object3D Object 3D
name_list Array.<String> List consisting of the material name, the names of nested node groups (if any) and the name of the RGB node itself
r Number The value to set the red channel of the RGB node to [0..1]
g Number The value to set the green channel of the RGB node to [0..1]
b Number The value to set the blue channel of the RGB node to [0..1]
Deprecated:
Source:

set_nodemat_value(obj, name_list, value)

Set value of the Value node in the object's material.
Parameters:
Name Type Description
obj Object3D Object 3D
name_list Array.<String> List consisting of the material name, the names of nested node groups (if any) and the name of the Value node itself. Should have at least 2 elements ["Mat","Node"]
value Number The value to set the Value node to
Deprecated:
Source:

update_boundings(obj)

Update object's boundings (box, cone, cylinder, ellipsoid, sphere, capsule).
Parameters:
Name Type Description
obj Object3D Object 3D
Source:

Type Definitions

ObjectMetaTags

Type:
  • Object
Properties:
Name Type Description
title String The title meta tag.
description String The description meta tag.
category String The category meta tag.
Source: