# ShaderNodeTree(NodeTree)

base classes — `bpy_struct`, `ID`, `NodeTree`

class `bpy.types.``ShaderNodeTree`(NodeTree)

  Node tree consisting of linked nodes used for materials (and other shading data-blocks)

  `get_output_node`(target)

    Return active shader output node for the specified target

    Parameters: | target (enum in ['ALL', 'EEVEE', 'CYCLES']) – Target `ALL` All, Use shaders for all renderers and viewports, unless there exists a more specific output. `EEVEE` Eevee, Use shaders for Eevee renderer. `CYCLES` Cycles, Use shaders for Cycles renderer.
    Returns: | Node
    Return type: | `ShaderNode`

  classmethod `bl_rna_get_subclass`(id, default=None)

    Parameters: | id (string) – The RNA type identifier.
    Returns: | The RNA type or default when not found.
    Return type: | `bpy.types.Struct` subclass

  classmethod `bl_rna_get_subclass_py`(id, default=None)

    Parameters: | id (string) – The RNA type identifier.
    Returns: | The class or default when not found.
    Return type: | type

Inherited Properties

`bpy_struct.id_data` `ID.name` `ID.name_full` `ID.is_evaluated` `ID.original` `ID.users` `ID.use_fake_user` `ID.tag` `ID.is_library_indirect` `ID.library` `ID.override_library` `ID.preview` `NodeTree.view_center` | `NodeTree.animation_data` `NodeTree.nodes` `NodeTree.links` `NodeTree.grease_pencil` `NodeTree.type` `NodeTree.inputs` `NodeTree.active_input` `NodeTree.outputs` `NodeTree.active_output` `NodeTree.bl_idname` `NodeTree.bl_label` `NodeTree.bl_description` `NodeTree.bl_icon`

Inherited Functions

`bpy_struct.as_pointer` `bpy_struct.driver_add` `bpy_struct.driver_remove` `bpy_struct.get` `bpy_struct.is_property_hidden` `bpy_struct.is_property_overridable_library` `bpy_struct.is_property_readonly` `bpy_struct.is_property_set` `bpy_struct.items` `bpy_struct.keyframe_delete` `bpy_struct.keyframe_insert` `bpy_struct.keys` `bpy_struct.path_from_id` `bpy_struct.path_resolve` `bpy_struct.pop` `bpy_struct.property_overridable_library_set` `bpy_struct.property_unset` | `bpy_struct.type_recast` `bpy_struct.values` `ID.evaluated_get` `ID.copy` `ID.override_create` `ID.user_clear` `ID.user_remap` `ID.make_local` `ID.user_of_id` `ID.animation_data_create` `ID.animation_data_clear` `ID.update_tag` `NodeTree.interface_update` `NodeTree.poll` `NodeTree.update` `NodeTree.get_from_context`