[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3480] contrib/py/scripts/addons/ io_export_marmalade.py: Fix issues reported by Mac users of Blender & Marmalade.
Benoit Muller
benoit.muller at laposte.net
Sun Jun 10 19:10:52 CEST 2012
Revision: 3480
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3480
Author: benoitmuller
Date: 2012-06-10 17:10:48 +0000 (Sun, 10 Jun 2012)
Log Message:
-----------
Fix issues reported by Mac users of Blender & Marmalade.
Modified Paths:
--------------
contrib/py/scripts/addons/io_export_marmalade.py
Modified: contrib/py/scripts/addons/io_export_marmalade.py
===================================================================
--- contrib/py/scripts/addons/io_export_marmalade.py 2012-06-10 15:25:13 UTC (rev 3479)
+++ contrib/py/scripts/addons/io_export_marmalade.py 2012-06-10 17:10:48 UTC (rev 3480)
@@ -22,7 +22,7 @@
bl_info = {
"name": "Marmalade Cross-platform Apps (.group)",
"author": "Benoit Muller",
- "version": (0, 6, 1),
+ "version": (0, 6, 2),
"blender": (2, 6, 3),
"location": "File > Export > Marmalade cross-platform Apps (.group)",
"description": "Export Marmalade Format files (.group)",
@@ -206,7 +206,7 @@
if Config.Verbose:
print(" Writing Armature Bones...")
#Create the skel file
- skelfullname = os.path.dirname(Config.FilePath) + "\models\%s.skel" % (StripName(Object.name))
+ skelfullname = os.path.dirname(Config.FilePath) + os.sep + "models" + os.sep + "%s.skel" % (StripName(Object.name))
ensure_dir(skelfullname)
if Config.Verbose:
print(" Creating skel file %s" % (skelfullname))
@@ -344,7 +344,7 @@
def CreateGeoMtlFiles(Config, Name):
#Create the geo file
- geofullname = os.path.dirname(Config.FilePath) + ("\models\%s.geo" % Name)
+ geofullname = os.path.dirname(Config.FilePath) + os.sep + "models" + os.sep + "%s.geo" % Name
ensure_dir(geofullname)
if Config.Verbose:
print(" Creating geo file %s" % (geofullname))
@@ -357,7 +357,7 @@
Config.File.write("\t\".\models\%s.geo\"\n" % Name)
# Create the mtl file
- mtlfullname = os.path.dirname(Config.FilePath) + "\models\%s.mtl" % (Name)
+ mtlfullname = os.path.dirname(Config.FilePath) + os.sep + "models" + os.sep + "%s.mtl" % Name
ensure_dir(mtlfullname)
if Config.Verbose:
print(" Creating mtl file %s" % (mtlfullname))
@@ -819,7 +819,7 @@
#try relative path to the blend file
Texture = os.path.dirname(bpy.data.filepath) + Texture
if os.path.exists(Texture):
- textureDest = os.path.dirname(Config.FilePath) + "\\models\\textures\\%s" % (bpy.path.basename(Texture))
+ textureDest = os.path.dirname(Config.FilePath) + os.sep + "models" + os.sep + "textures" + os.sep + ("%s" % bpy.path.basename(Texture))
ensure_dir(textureDest)
if Config.Verbose:
print(" Copying the texture file %s ---> %s" % (Texture, textureDest))
@@ -893,7 +893,7 @@
def PrintSkinWeights(Config, ArmatureObjectName, useBonesDict, mapVertexGroupNames, GeoName):
#Create the skin file
- skinfullname = os.path.dirname(Config.FilePath) + "\models\%s.skin" % GeoName
+ skinfullname = os.path.dirname(Config.FilePath) + os.sep + "models" + os.sep + "%s.skin" % GeoName
ensure_dir(skinfullname)
if Config.Verbose:
print(" Creating skin file %s" % (skinfullname))
@@ -1120,7 +1120,7 @@
keyframeTimes.sort()
if len(keyframeTimes):
#Create the anim file for offset animation (or single bone animation
- animfullname = os.path.dirname(Config.FilePath) + "\\anims\\%s_offset.anim" % animFileName
+ animfullname = os.path.dirname(Config.FilePath) + os.sep + "anims" + os.sep + "%s_offset.anim" % animFileName
#not yet supported
"""
## ensure_dir(animfullname)
@@ -1221,7 +1221,7 @@
if len(keyframeTimes):
#Create the anim file
- animfullname = os.path.dirname(Config.FilePath) + "\\anims\\%s.anim" % animFileName
+ animfullname = os.path.dirname(Config.FilePath) + os.sep + "anims" + os.sep + "%s.anim" % animFileName
ensure_dir(animfullname)
if Config.Verbose:
print(" Creating anim file (bones animation) %s\n" % (animfullname))
More information about the Bf-extensions-cvs
mailing list