Hi Schoenberger

We have logged this under SOFT-9740 for investigation.

Thanks!
-Ivan

-----Original Message-----
From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Schoenberger
Sent: Wednesday, October 16, 2013 11:22 PM
To: softimage@listproc.autodesk.com
Subject: XSIBatch python does not support named arguments?

Hi


Quick question:
I have a new python script and I named the args, but XSIBatch ignores the arg 
names and placed them in the same order as written in the commandline. No 
matter the arg name.
The issue is that I do not want to/can not  specify all parameters.
So I cannot set them into the same order as in the script.
Am I missing something?


Commandline:
XSIBatch -thread 8 -script "kso_softimage.py" -lang Python -main main -args 
-inSName "rendertest.scn" -inDb "To_Delete" -inPass "PassA"  
-inKSOMode true


kso_softimage.py:
def main(inKSOMode="", inSName="",inDb="",inPass=""):
        logMessage("","######################################################")
        logMessage("","inKSOMode " + str(inKSOMode))
        logMessage("","inSName " + str(inSName))
        logMessage("","inDb " + str(inDb))
        logMessage("","inPass " + str(inPass))


Output:
  ######################################################
  inKSOMode rendertest.scn
  inSName To_Delete
  inDb PassA
  inPass true



Holger Schoenberger
technical director
The day has 24 hours, if that does not suffice, I will take the night




<<attachment: winmail.dat>>

Reply via email to