Error message would help but maybe the slash formatting isn't something SI is liking?

Maybe using XSIUtils.BuildPath() would work better?

Eric Thivierge
===============
Character TD / RnD
Hybride Technologies
On 05/06/2013 4:47 PM, Andy Moorer wrote:
Ok, I'm wearing my dunce cap. I am trying to import a model which resides in a workgroup's "models" folder.

I have an environment variable set which is the path to the workgroup.

I'm obviously missing something simple. Any suggestions?

____________

xsi = Application
lm = xsi.LogMessage
import os

SOFTIMAGE_WG = os.environ['SOFTIMAGE_WG']

WGpath = os.path.join(SOFTIMAGE_WG, "Models")

lm (WGpath) #Path logged is correct

mdlPath= os.path.join(WGpath, "TapeMeasure.emdl")

lm (mdlPath) #yes, still correct... mdlPath is type string

xsi.ImportModel(mdlPath) #Errors out


Reply via email to