[Bf-cycles] Unique socket names?

Campbell Barton ideasman42 at gmail.com
Tue Aug 6 22:27:11 CEST 2013

Hi, recently I've been using python to create a node-tree, and ran
into a limit with socket names.

The 'Mix' and 'Add' shader nodes have both sockets named 'Shader',
this means Python can't usefully reference them by name,
instead you need to reference them by index which is more fragile
since it may break the script if sockets change order.

Is there any problem with naming these 'Shader1', 'Shader2' ? --- this
matches Color Mix which is called 'Color1', 'Color2'.

- Campbell

More information about the Bf-cycles mailing list