Class Object#

Object DataSocket

Constructor#

Object(self, obj=None)

Content#

Properties

bobject

Inherited

bl_idname | bnode | is_multi_input | is_output | is_plugged | links | name | node_chain_label | socket_index

Class and static methods

Input | Self

Inherited

get_bl_idname | get_class_name | gives_bsocket | is_socket | is_vector | python_type_to_socket | value_data_type

Methods

geometry | info | location | rotation | scale | switch

Inherited

connected_sockets | get_blender_socket | init_domains | init_socket | plug | reroute | reset_properties | stack | to_output

Properties#

bobject#

Returns the blender of object.

A DataSocket Object has the particularity to be initialized without any socket. This allow to call the node ‘Object Info’ alone.

bobject returns the blender object for this node.

Returns:#

  • Blender Object or self if bsocket if not None

Go to top - main - nodes - nodes menus

Class and static methods#

Input#

@classmethod
def Input(cls, value=None, name="Object", description="")

Create an Object input socket in the Group Input Node

Args:#

  • name: The socket name

  • description: User tip

Returns:#

  • Object: The Object data socket

Go to top - main - nodes - nodes menus

Self#

@classmethod
def Self(cls)

Returns:#

  • socket self_object

Go to top - main - nodes - nodes menus

Methods#

geometry#

def geometry(self, as_instance=None, transform_space='ORIGINAL')

Args:#

  • as_instance: Boolean

  • transform_space (str): ‘ORIGINAL’ in [ORIGINAL, RELATIVE]

Returns:#

  • socket geometry

Go to top - main - nodes - nodes menus

info#

def info(self, as_instance=None, transform_space='ORIGINAL')

Args:#

  • as_instance: Boolean

  • transform_space (str): ‘ORIGINAL’ in [ORIGINAL, RELATIVE]

Returns:#

  • node with sockets [‘location’, ‘rotation’, ‘scale’, ‘geometry’]

Go to top - main - nodes - nodes menus

location#

def location(self, as_instance=None, transform_space='ORIGINAL')

Args:#

  • as_instance: Boolean

  • transform_space (str): ‘ORIGINAL’ in [ORIGINAL, RELATIVE]

Returns:#

  • socket location

Go to top - main - nodes - nodes menus

rotation#

def rotation(self, as_instance=None, transform_space='ORIGINAL')

Args:#

  • as_instance: Boolean

  • transform_space (str): ‘ORIGINAL’ in [ORIGINAL, RELATIVE]

Returns:#

  • socket rotation

Go to top - main - nodes - nodes menus

scale#

def scale(self, as_instance=None, transform_space='ORIGINAL')

Args:#

  • as_instance: Boolean

  • transform_space (str): ‘ORIGINAL’ in [ORIGINAL, RELATIVE]

Returns:#

  • socket scale

Go to top - main - nodes - nodes menus

switch#

def switch(self, switch=None, true=None)

Args:#

  • switch: Boolean

  • true: Object

Returns:#

  • socket output

Go to top - main - nodes - nodes menus