Blender Git Commit Log

Git Commits -> Revision dae5031

Revision dae5031 by Willian Padovani Germano (master)
March 16, 2008, 17:24 (GMT)
== PyNodes ==

Ongoing updates to the Blender.Node Python API:

- Changed Blender.Node.node to Blender.Node.Scripted to be more specific and conform to bpython API.
- Added a Blender.Node.Socket type to be used to define node sockets in a PyNode script. Also, socket type is inferred from the value(s) passed in, instead of also being defined by the script author.
- Added attr access to input and output sockets in the __call__ method. Ex: an input socket called 'color' can be accessed as self.input.color now.

These changes break existing pynode scripts, which shouldn't be a problem yet, of course, since we're still finishing this feature for 2.46. The wiki page and sample .blends have already been updated:

http://wiki.blender.org/index.php/BlenderDev/PyNodes
http://wiki.blender.org/index.php/BlenderDev/PyNodes/API

Commit Details:

Full Hash: dae503187c9c77a6f51bc4cb7bad81e78590b692
SVN Revision: 14141
Parent Commit: 6a2e538
Lines Changed: +534, -229

5 Modified Paths:

/source/blender/blenkernel/bad_level_call_stubs/stubs.c (+1, -1) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+1, -1) (Diff)
/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c (+6, -74) (Diff)
/source/blender/python/api2_2x/Node.c (+507, -151) (Diff)
/source/blender/python/api2_2x/Node.h (+19, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021