|
|
@ -17,6 +17,7 @@ import bpy |
|
|
|
import os.path |
|
|
|
import os.path |
|
|
|
from PyHSPlasma import * |
|
|
|
from PyHSPlasma import * |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ExportError(Exception): |
|
|
|
class ExportError(Exception): |
|
|
|
def __init__(self, value="Undefined Export Error"): |
|
|
|
def __init__(self, value="Undefined Export Error"): |
|
|
|
super(Exception, self).__init__(value) |
|
|
|
super(Exception, self).__init__(value) |
|
|
@ -47,7 +48,6 @@ class Exporter: |
|
|
|
f = node.addPoolObject |
|
|
|
f = node.addPoolObject |
|
|
|
f(pl.key) |
|
|
|
f(pl.key) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@property |
|
|
|
@property |
|
|
|
def age_name(self): |
|
|
|
def age_name(self): |
|
|
|
return os.path.splitext(os.path.split(self._op.filepath)[1])[0] |
|
|
|
return os.path.splitext(os.path.split(self._op.filepath)[1])[0] |
|
|
@ -152,7 +152,8 @@ class Exporter: |
|
|
|
def _generate_builtins(self): |
|
|
|
def _generate_builtins(self): |
|
|
|
# Find the highest two available negative suffixes for BuiltIn and Textures |
|
|
|
# Find the highest two available negative suffixes for BuiltIn and Textures |
|
|
|
# This should generally always resolve to -2 and -1 |
|
|
|
# This should generally always resolve to -2 and -1 |
|
|
|
suffixes = []; _s = -1 |
|
|
|
suffixes = [] |
|
|
|
|
|
|
|
_s = -1 |
|
|
|
while len(suffixes) != 2: |
|
|
|
while len(suffixes) != 2: |
|
|
|
for location in self._pages.values(): |
|
|
|
for location in self._pages.values(): |
|
|
|
if location.page == _s: |
|
|
|
if location.page == _s: |
|
|
|