Blender Git Loki

Git Commits -> Revision 4a8f71f

Revision 4a8f71f by Lukas Toenne (master)
June 10, 2013, 12:19 (GMT)
Custom Group Node type for extending existing nodes from python scripts. This is a sort of workaround for the lack of APIs in our existing node systems (compositor, cycles, BI, textures). These systems
don't have any way to deal with scripted node types yet, which could in principle by added with pynodes. The NodeCustomGroup type adds a way of scripting nodes by automating node groups which the
hardcoded system can then interpret like regular groups.

The new NodeCustomGroup type has the basic node_tree pointer property like the regular group node types and also uses the same socket interface system as regular groups. This means that input/output
sockets can be mapped to internal nodes in the same way as regular node groups in renderers and the compositor. On top of that, however, the NodeCustomGroup type can be subclassed in python scripts to flesh out
scripted node types with own draw functions, properties, updates and so on.

NB: Only cycles currently supports this node type and its derivatives, other systems may follow later.

Commit Details:

Full Hash: 4a8f71fc1d3707d3d6abcc5d8528a87339d429ba
SVN Revision: 57347
Parent Commit: 31e74d0
Lines Changed: +40, -3

2 Modified Paths:

/intern/cycles/blender/blender_shader.cpp (+6, -3) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+34, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021