[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [896] trunk/py/scripts/addons: update for changes in blender

Campbell Barton ideasman42 at gmail.com
Fri Aug 6 05:47:59 CEST 2010


Revision: 896
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=896
Author:   campbellbarton
Date:     2010-08-06 05:47:42 +0200 (Fri, 06 Aug 2010)

Log Message:
-----------
update for changes in blender

Modified Paths:
--------------
    trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py
    trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py
    trunk/py/scripts/addons/io_mesh_raw/import_raw.py
    trunk/py/scripts/addons/io_mesh_stl/__init__.py
    trunk/py/scripts/addons/io_mesh_stl/stl_utils.py
    trunk/py/scripts/addons/render_povray/render.py

Modified: trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py	2010-08-06 01:39:06 UTC (rev 895)
+++ trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py	2010-08-06 03:47:42 UTC (rev 896)
@@ -1,23 +1,4 @@
-# ##### BEGIN GPL LICENSE BLOCK #####
-#
-#  This program is free software; you can redistribute it and/or
-#  modify it under the terms of the GNU General Public License
-#  as published by the Free Software Foundation; either version 2
-#  of the License, or (at your option) any later version.
-#
-#  This program is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY; without even the implied warranty of
-#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#  GNU General Public License for more details.
-#
-#  You should have received a copy of the GNU General Public License
-#  along with this program; if not, write to the Free Software Foundation,
-#  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# ##### END GPL LICENSE BLOCK #####
-
-
-import os  #remove this
+import os  #remove this
 import bpy
 
 try: 

Modified: trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py	2010-08-06 01:39:06 UTC (rev 895)
+++ trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py	2010-08-06 03:47:42 UTC (rev 896)
@@ -1,25 +1,4 @@
-# add_mesh_bolt.py Copyright (C) 2010, Aaron Keith (Spudmn)
-#
-# add bolt or Nut mesh blender 2.50 Found in the TOOLS panel 
-# ***** BEGIN GPL LICENSE BLOCK *****
-#
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-#
-# ***** END GPL LICENCE BLOCK ***** 
-
+
 bl_addon_info = {
     'name': 'Add Mesh: Bolt',
     'author': 'Aaron Keith',

Modified: trunk/py/scripts/addons/io_mesh_raw/import_raw.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_raw/import_raw.py	2010-08-06 01:39:06 UTC (rev 895)
+++ trunk/py/scripts/addons/io_mesh_raw/import_raw.py	2010-08-06 03:47:42 UTC (rev 896)
@@ -125,7 +125,7 @@
     def execute(self, context):
 
         #convert the filename to an object name
-        objName = bpy.utils.display_name(self.properties.filename)
+        objName = bpy.path.display_name(self.properties.filename)
 
         mesh = readMesh(self.properties.filepath, objName)
         addMeshObj(mesh, objName)

Modified: trunk/py/scripts/addons/io_mesh_stl/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_stl/__init__.py	2010-08-06 01:39:06 UTC (rev 895)
+++ trunk/py/scripts/addons/io_mesh_stl/__init__.py	2010-08-06 03:47:42 UTC (rev 896)
@@ -77,7 +77,7 @@
                           default="")
 
     def execute(self, context):
-        objName = bpy.utils.display_name(self.properties.filepath.split("\\")[-1].split("/")[-1])
+        objName = bpy.path.display_name(self.properties.filepath.split("\\")[-1].split("/")[-1])
         tris, pts = stl_utils.read_stl(self.properties.filepath)
 
         blender_utils.create_and_link_mesh(objName, tris, pts)

Modified: trunk/py/scripts/addons/io_mesh_stl/stl_utils.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_stl/stl_utils.py	2010-08-06 01:39:06 UTC (rev 895)
+++ trunk/py/scripts/addons/io_mesh_stl/stl_utils.py	2010-08-06 03:47:42 UTC (rev 896)
@@ -222,7 +222,7 @@
     filenames = sys.argv[sys.argv.index('--') + 1:]
 
     for filename in filenames:
-        objName = bpy.utils.display_name(filename)
+        objName = bpy.path.display_name(filename)
         tris, pts = read_stl(filename)
 
         blender_utils.create_and_link_mesh(objName, tris, pts)

Modified: trunk/py/scripts/addons/render_povray/render.py
===================================================================
--- trunk/py/scripts/addons/render_povray/render.py	2010-08-06 01:39:06 UTC (rev 895)
+++ trunk/py/scripts/addons/render_povray/render.py	2010-08-06 03:47:42 UTC (rev 896)
@@ -80,7 +80,7 @@
         else:
             name_orig = DEF_MAT_NAME
 
-        name = materialNames[name_orig] = uniqueName(bpy.utils.clean_name(name_orig), materialNames)
+        name = materialNames[name_orig] = uniqueName(bpy.path.clean_name(name_orig), materialNames)
 
         file.write('#declare %s = finish {\n' % name)
 




More information about the Bf-extensions-cvs mailing list