[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4581] contrib/py/scripts/addons/ online_mat_lib/__init__.py: update for missing nodes missing nodes ( BsdfVelvet / Reroute) thanks travisdk

Brendon Murphy meta.androcto1 at gmail.com
Wed Jun 19 11:52:27 CEST 2013


Revision: 4581
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4581
Author:   meta-androcto
Date:     2013-06-19 09:52:27 +0000 (Wed, 19 Jun 2013)
Log Message:
-----------
update for missing nodes missing nodes (BsdfVelvet / Reroute) thanks travisdk

Modified Paths:
--------------
    contrib/py/scripts/addons/online_mat_lib/__init__.py

Modified: contrib/py/scripts/addons/online_mat_lib/__init__.py
===================================================================
--- contrib/py/scripts/addons/online_mat_lib/__init__.py	2013-06-18 21:22:12 UTC (rev 4580)
+++ contrib/py/scripts/addons/online_mat_lib/__init__.py	2013-06-19 09:52:27 UTC (rev 4581)
@@ -33,7 +33,7 @@
     "version": (0, 6),
     "blender": (2, 64, 0),
     "location": "Properties > Material > Online Material Library",
-    "description": "Browse and download materials from online CC0 libraries.",
+    "description": "Browse and download materials from online CC0 libraries",
     "warning": "Beta version",
     "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Material/Online_Material_Library",
     "tracker_url": "http://projects.blender.org/tracker/index.php?func=detail&aid=31802",
@@ -4051,7 +4051,7 @@
         
         elif node_type == "BSDF_VELVET":
             print ("BSDF_VELVET")
-            node = node_tree.nodes.new(node_type)
+            node = node_tree.nodes.new("ShaderNodeBsdfVelvet")
             node.inputs['Color'].default_value = color(node_data['color'].value)
             node.inputs['Sigma'].default_value = float(node_data['sigma'].value)
         
@@ -4619,7 +4619,7 @@
         
         elif node_type == "REROUTE":
             print ("REROUTE")
-            node = node_tree.nodes.new(node_type)
+            node = node_tree.nodes.new("NodeReroute")
         
         elif node_type == "SCRIPT":
             if bpy.app.version[0] + (bpy.app.version[1] / 100.0) < 2.65:
@@ -4628,7 +4628,7 @@
 You may need a newer version of Blender for this material to work properly."""]
                 return
             print ("SCRIPT")
-            node = node_tree.nodes.new("ShaderModeScript")
+            node = node_tree.nodes.new("ShaderNodeScript")
             node.mode = node_data['mode'].value
             if node_data['mode'].value == 'EXTERNAL':
                 if 'script' in node_data:
@@ -4785,7 +4785,6 @@
                 node_group = node_groups[int(node_data['group'].value)]
             if node_group:
                 node = node_tree.nodes.new("ShaderNodeGroup", node_group)
-                node = node_tree.nodes.new("ShaderNodeGroup", node_group)
             if node.inputs:
                 for input in node.inputs:
                     if input.name.lower().replace(" ", "_") in node_data:



More information about the Bf-extensions-cvs mailing list