With .vbs it works, too.

Hmm, perhaps a wrapper?
Is there a way to execute python commands via vbs or js?
As far as I see it I would need to execute
  import sys
  sys.path.append(myPathArg)
  import myScriptFile
  MyFunction(myArgs)



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


Quoting Stephen Blair <[email protected]>:

Seems like a Python-specific issue. With a .js it worked as expected.


On Wed, Oct 16, 2013 at 11:21 AM, Schoenberger <[email protected]> wrote:

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