Passing arguments to Python script in batch

Date : Thu, 24 May 2007 15:59:28 -0400
To : XSI(at)Softimage.COM
From : "Bernard Lebel" <3dbernard(at)gmail.com>
Subject : Passing arguments to Python script in batch
Can you pass arguments to Python scripts when using -script in XSIBATCH? I remember there used to be something about that, is it fixed?

COMMAND: -script C:\Softimage\workgroups\ts_workgroup\data\scripts\ts_pipeline\ts_addpogeogroups.py -lang Python -main addPOGeoGroups -args ['salut']
//ERROR : Traceback (most recent call last):
//TypeError: addPOGeoGroups() takes exactly 1 argument (0 given)
// - [line 4294967295]
ERROR - Script failed.
FATAL - Script Aborted.


Thanks
Bernard

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.