Yes, there is. You can use the ExecuteScriptCode()
Ah, thanks.
But I am almost finished now with my own string to param parser in python.
But good to have a backup. There is always a chance that this new
commandline string will not work with some special parameter value.
Will see, it's alpha.
Holger Schoenberger
technical director
The day has 24 hours, if that does not suffice, I will take the night
Quoting Alan Fregtman <[email protected]>:
Yes, there is. You can use the
ExecuteScriptCode()<http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/index.html?url=si_om/Application.ExecuteScriptCode.html,topicNumber=si_om_Application_ExecuteScriptCode_html>command
to call a string of code in whatever language. There's also
ExecuteScript()<http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/index.html?url=si_om/Application.ExecuteScript.html,topicNumber=si_om_Application_ExecuteScript_html>which
can call an external file.
On Wed, Oct 16, 2013 at 11:53 AM, Schoenberger <[email protected]> wrote:
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