[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2027] trunk/py/scripts/addons/ io_coat3D: -Removed extra print() lines
Kalle-Samuli Riihikoski
haikalle at gmail.com
Thu Jun 9 10:52:09 CEST 2011
Revision: 2027
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2027
Author: haikalle
Date: 2011-06-09 08:52:08 +0000 (Thu, 09 Jun 2011)
Log Message:
-----------
-Removed extra print() lines
-Fixed Blender_export issue. Thanks to Perfection Cat providing the fix.
Modified Paths:
--------------
trunk/py/scripts/addons/io_coat3D/coat.py
trunk/py/scripts/addons/io_coat3D/tex.py
Modified: trunk/py/scripts/addons/io_coat3D/coat.py
===================================================================
--- trunk/py/scripts/addons/io_coat3D/coat.py 2011-06-09 08:37:57 UTC (rev 2026)
+++ trunk/py/scripts/addons/io_coat3D/coat.py 2011-06-09 08:52:08 UTC (rev 2027)
@@ -50,6 +50,7 @@
import_no = 0
coat = bpy.coat3D
coat3D = bpy.context.scene.coat3D
+ Blender_export = ""
if(bpy.context.scene.objects.active):
coa = bpy.context.scene.objects.active.coat3D
@@ -282,7 +283,6 @@
act_first = bpy.context.scene.objects.active
for act_name in test:
if act_name.type == 'MESH' and os.path.isfile(act_name.coat3D.objectdir):
- print('eihan tanne voi tulla')
activeobj = act_name.name
mat_list = []
scene.objects[activeobj].select = True
@@ -430,7 +430,6 @@
path3b_file.close()
os.remove(path3b_now)
else:
- print("ei toimi")
path_on = 0
for palikka in bpy.context.scene.objects:
@@ -562,7 +561,7 @@
layout.menu("VIEW3D_MT_ExportMenu")
layout.separator()
- layout.operator("import_applink.pilgway_3d_deltex",text="Delete Textures")
+ layout.menu("VIEW3D_MT_ExtraMenu")
layout.separator()
if(len(bpy.context.selected_objects) == 1):
@@ -602,6 +601,18 @@
layout.prop(coat3D,"exportfile")
layout.prop(coat3D,"export_pos")
+class VIEW3D_MT_ExtraMenu(bpy.types.Menu):
+ bl_label = "Extra"
+
+ def draw(self, context):
+ layout = self.layout
+ coat3D = bpy.context.scene.coat3D
+ settings = context.tool_settings
+ layout.operator_context = 'INVOKE_REGION_WIN'
+
+ layout.operator("import_applink.pilgway_3d_deltex",text="Delete all Textures")
+ layout.separator()
+
def register():
bpy.utils.register_module(__name__)
Modified: trunk/py/scripts/addons/io_coat3D/tex.py
===================================================================
--- trunk/py/scripts/addons/io_coat3D/tex.py 2011-06-09 08:37:57 UTC (rev 2026)
+++ trunk/py/scripts/addons/io_coat3D/tex.py 2011-06-09 08:52:08 UTC (rev 2027)
@@ -164,8 +164,8 @@
bpy.ops.image.new(name=name_tex)
bpy.data.images[name_tex].filepath = texcoat['color'][0]
bpy.data.images[name_tex].source = 'FILE'
- print('name_tex: %s'%name_tex)
+
bpy.data.textures.new(name_tex,type='IMAGE')
objekti.active_material.texture_slots[index].texture = bpy.data.textures[name_tex]
@@ -179,10 +179,8 @@
elif(useold != ''):
- print('useold:%s'%useold)
-
+
objekti.active_material.texture_slots[index].texture = useold
- print(objekti.active_material)
objekti.active_material.texture_slots[index].texture.image.filepath = texcoat['color'][0]
if(objekti.data.uv_textures.active):
objekti.active_material.texture_slots[index].texture_coords = 'UV'
More information about the Bf-extensions-cvs
mailing list