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




Reply via email to