Blender V5.0
bpy_inline_shader_nodes.cc File Reference
#include "BKE_idtype.hh"
#include "BKE_lib_id.hh"
#include "BKE_node.hh"
#include "DNA_light_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_world_types.h"
#include "NOD_shader_nodes_inline.hh"
#include "bpy_inline_shader_nodes.hh"
#include "bpy_rna.hh"
#include "../generic/py_capi_utils.hh"

Go to the source code of this file.

Classes

struct  BPy_InlineShaderNodes

Functions

static BPy_InlineShaderNodescreate_from_shader_node_tree (const bNodeTree &tree)
 PyDoc_STRVAR (bpy_inline_shader_nodes_from_material_doc, ".. staticmethod:: from_material(material)\n" "\n" " Create an inlined shader node tree from a material.\n" "\n" " :arg material: The material to inline the node tree of.\n" " :type material: bpy.types.Material\n")
static BPy_InlineShaderNodesBPy_InlineShaderNodes_static_from_material (PyObject *, PyObject *args, PyObject *kwds)
 PyDoc_STRVAR (bpy_inline_shader_nodes_from_light_doc, ".. staticmethod:: from_light(light)\n" "\n" " Create an inlined shader node tree from a light.\n" "\n" " :arg light: The light to online the node tree of.\n" " :type light: bpy.types.Light\n")
static BPy_InlineShaderNodesBPy_InlineShaderNodes_static_from_light (PyObject *, PyObject *args, PyObject *kwds)
 PyDoc_STRVAR (bpy_inline_shader_nodes_from_world_doc, ".. staticmethod:: from_world(world)\n" "\n" " Create an inlined shader node tree from a world.\n" "\n" " :arg world: The world to inline the node tree of.\n" " :type world: bpy.types.World\n")
static BPy_InlineShaderNodesBPy_InlineShaderNodes_static_from_world (PyObject *, PyObject *args, PyObject *kwds)
static void BPy_InlineShaderNodes_dealloc (BPy_InlineShaderNodes *self)
 PyDoc_STRVAR (bpy_inline_shader_nodes_node_tree_doc, "The inlined node tree.\n" "\n" ":type: :class:`bpy.types.NodeTree`\n")
static PyObject * BPy_InlineShaderNodes_get_node_tree (BPy_InlineShaderNodes *self, void *)
 PyDoc_STRVAR (bpy_inline_shader_nodes_doc, "An inlined shader node tree.\n")
PyObject * BPyInit_inline_shader_nodes_type ()

Variables

PyTypeObject bpy_inline_shader_nodes_Type
static PyGetSetDef BPy_InlineShaderNodes_getseters []
static PyMethodDef BPy_InlineShaderNodes_methods []

Function Documentation

◆ BPy_InlineShaderNodes_dealloc()

void BPy_InlineShaderNodes_dealloc ( BPy_InlineShaderNodes * self)
static

Definition at line 158 of file bpy_inline_shader_nodes.cc.

References BKE_id_free(), and self.

◆ BPy_InlineShaderNodes_get_node_tree()

PyObject * BPy_InlineShaderNodes_get_node_tree ( BPy_InlineShaderNodes * self,
void *  )
static

Definition at line 170 of file bpy_inline_shader_nodes.cc.

References pyrna_id_CreatePyObject(), and self.

◆ BPy_InlineShaderNodes_static_from_light()

BPy_InlineShaderNodes * BPy_InlineShaderNodes_static_from_light ( PyObject * ,
PyObject * args,
PyObject * kwds )
static

◆ BPy_InlineShaderNodes_static_from_material()

BPy_InlineShaderNodes * BPy_InlineShaderNodes_static_from_material ( PyObject * ,
PyObject * args,
PyObject * kwds )
static

◆ BPy_InlineShaderNodes_static_from_world()

BPy_InlineShaderNodes * BPy_InlineShaderNodes_static_from_world ( PyObject * ,
PyObject * args,
PyObject * kwds )
static

◆ BPyInit_inline_shader_nodes_type()

PyObject * BPyInit_inline_shader_nodes_type ( )
nodiscard

Definition at line 264 of file bpy_inline_shader_nodes.cc.

References bpy_inline_shader_nodes_Type.

Referenced by BPy_init_modules().

◆ create_from_shader_node_tree()

◆ PyDoc_STRVAR() [1/5]

PyDoc_STRVAR ( bpy_inline_shader_nodes_doc ,
"An inlined shader node tree.\n"  )

◆ PyDoc_STRVAR() [2/5]

PyDoc_STRVAR ( bpy_inline_shader_nodes_from_light_doc ,
".. staticmethod:: from_light(light)\n" "\n" " Create an inlined shader node tree from a light.\n" "\n" " :arg light: The light to online the node tree of.\n" " :type light: bpy.types.Light\n"  )

◆ PyDoc_STRVAR() [3/5]

PyDoc_STRVAR ( bpy_inline_shader_nodes_from_material_doc ,
".. staticmethod:: from_material(material)\n" "\n" " Create an inlined shader node tree from a material.\n" "\n" " :arg material: The material to inline the node tree of.\n" " :type material: bpy.types.Material\n"  )

◆ PyDoc_STRVAR() [4/5]

PyDoc_STRVAR ( bpy_inline_shader_nodes_from_world_doc ,
".. staticmethod:: from_world(world)\n" "\n" " Create an inlined shader node tree from a world.\n" "\n" " :arg world: The world to inline the node tree of.\n" " :type world: bpy.types.World\n"  )

◆ PyDoc_STRVAR() [5/5]

PyDoc_STRVAR ( bpy_inline_shader_nodes_node_tree_doc ,
"The inlined node tree.\n" "\n" ":type: :class:`bpy.types.NodeTree`\n"  )

Variable Documentation

◆ bpy_inline_shader_nodes_Type

PyTypeObject bpy_inline_shader_nodes_Type

◆ BPy_InlineShaderNodes_getseters

PyGetSetDef BPy_InlineShaderNodes_getseters[]
static
Initial value:
= {
{"node_tree",
nullptr,
bpy_inline_shader_nodes_node_tree_doc,
nullptr},
{nullptr},
}
static PyObject * BPy_InlineShaderNodes_get_node_tree(BPy_InlineShaderNodes *self, void *)

Definition at line 176 of file bpy_inline_shader_nodes.cc.

◆ BPy_InlineShaderNodes_methods

PyMethodDef BPy_InlineShaderNodes_methods[]
static
Initial value:
= {
{"from_material",
METH_VARARGS | METH_KEYWORDS | METH_STATIC,
bpy_inline_shader_nodes_from_material_doc},
{"from_light",
METH_VARARGS | METH_KEYWORDS | METH_STATIC,
bpy_inline_shader_nodes_from_light_doc},
{"from_world",
METH_VARARGS | METH_KEYWORDS | METH_STATIC,
bpy_inline_shader_nodes_from_world_doc},
{nullptr},
}
static BPy_InlineShaderNodes * BPy_InlineShaderNodes_static_from_world(PyObject *, PyObject *args, PyObject *kwds)
static BPy_InlineShaderNodes * BPy_InlineShaderNodes_static_from_material(PyObject *, PyObject *args, PyObject *kwds)
static BPy_InlineShaderNodes * BPy_InlineShaderNodes_static_from_light(PyObject *, PyObject *args, PyObject *kwds)

Definition at line 195 of file bpy_inline_shader_nodes.cc.