Node Switch#

from geonodes import nodes

node = nodes.Switch(switch=None, false=None, true=None, input_type='GEOMETRY')

Blender Image

Args:#

Input socket arguments:#

  • switch: input_type dependant

  • false: input_type dependant

  • true: input_type dependant

Node parameter arguments:#

  • input_type (str): default = ‘GEOMETRY’ in (‘FLOAT’, ‘INT’, ‘BOOLEAN’, ‘VECTOR’, ‘STRING’, ‘RGBA’, ‘OBJECT’, ‘IMAGE’, ‘GEOMETRY’, ‘COLLECTION’, ‘TEXTURE’, ‘MATERIAL’)

Output sockets:#

  • output : input_type dependant

Shared sockets:#

  • Driving parameter : input_type in (‘FLOAT’, ‘INT’, ‘BOOLEAN’, ‘VECTOR’, ‘STRING’, ‘RGBA’, ‘OBJECT’, ‘IMAGE’, ‘GEOMETRY’, ‘COLLECTION’, ‘TEXTURE’, ‘MATERIAL’)

  • Input sockets : [‘switch’, ‘false’, ‘true’]

  • Output sockets : [‘output’]

Implementation#

Class or method name

Definition

Boolean

switch

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

Collection

switch

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

Color

switch

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

Float

switch

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

Geometry

switch

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

Image

switch

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

Integer

switch

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

Material

switch

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

Object

switch

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

String

switch

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

Texture

switch

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

Vector

switch

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

Global functions

switch

def switch(switch=None, false=None, true=None, input_type='GEOMETRY'):

switch_float

def switch_float(switch=None, false=None, true=None):

switch_integer

def switch_integer(switch=None, false=None, true=None):

switch_boolean

def switch_boolean(switch=None, false=None, true=None):

switch_vector

def switch_vector(switch=None, false=None, true=None):

switch_string

def switch_string(switch=None, false=None, true=None):

switch_color

def switch_color(switch=None, false=None, true=None):

switch_object

def switch_object(switch=None, false=None, true=None):

switch_image

def switch_image(switch=None, false=None, true=None):

switch_geometry

def switch_geometry(switch=None, false=None, true=None):

switch_collection

def switch_collection(switch=None, false=None, true=None):

switch_texture

def switch_texture(switch=None, false=None, true=None):

switch_material

def switch_material(switch=None, false=None, true=None):

Go to top - main - nodes - nodes menus