<p>this should set you on you way</p>
<p><a href="http://wiki.blender.org/index.php/User:Phonybone/Python_Nodes/API_changes">http://wiki.blender.org/index.php/User:Phonybone/Python_Nodes/API_changes</a></p>
<p>regards<br>
 inS<br>
</p>
<div class="gmail_quote">On Apr 27, 2013 2:46 AM, "Peter D. Cassetta" <<a href="mailto:peter@fingertipsoft.com">peter@fingertipsoft.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I am encountering an error when adding new nodes to a material's node<br>
tree (via Python).<br>
<br>
I know there have been some API changes recently; I just rebuilt Blender<br>
from SVN yesterday.<br>
Here is the code I am running and the error I am getting.<br>
<br>
>>> C.object.active_material.node_tree.nodes.new('MIX_SHADER')<br>
Traceback (most recent call last):<br>
   File "/opt/blender-svn/2.66/python/lib/python3.3/code.py", line 90, in runcode<br>
     exec(code, self.locals)<br>
   File "<blender_console>", line 1, in <module><br>
RuntimeError: Error: Node type MIX_SHADER undefined<br>
<br>
<br>
Is nodes.new() deprecated, or just broken at the moment?<br>
I am getting this error for any node type, by the way.<br>
<br>
Also, do I need to change my code to fix this, or just wait a bit?<br>
Thanks for any assistance!<br>
<br>
-Peter Cassetta<br>
_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</blockquote></div>