RE: Passing arguments to Python script in batch
| Date : Fri, 25 May 2007 18:02:20 +0100 |
| To : <XSI(at)Softimage.COM> |
| From : "Kim Aldis" <XSI(at)kim-aldis.co.uk> |
| Subject : RE: Passing arguments to Python script in batch |
|
You have a – before sabsmodelfile that shouldn’t be there. It’s
not a command line argument. From:
owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Bernard
Lebel That's exactly what I did in
the first place. On 5/25/07, Halfdan Ingvarsson
<hingvars(at)softimage.com>
wrote: Let's re-do this to avoid any confusion: Command line: xsibatch -script myPythonScript.py -lang
Python -main myPythonFunction -args -bob "my uncle" myPythonScript.py: def myPythonFunction( bob ): Application.LogMessage(
"Who is Bob? Bob is " + bob ) Output: # INFO: Who is Bob? Bob is my uncle - ½ From: owner-xsi(at)Softimage.COM
[mailto:owner-xsi(at)Softimage.COM]
On Behalf Of Bernard Lebel
So it's -args,
-arg1, -<argument name>, <argument value>, -arg2, -<argument
name>, <argument value>? On 5/25/07, Marc-André Belzile
<mbelzile(at)softimage.com>
wrote: > COMMAND: -script |
- Follow-Ups:
- Re: Passing arguments to Python script in batch
- From: "Bernard Lebel" <3dbernard(at)gmail.com>
- Re: Passing arguments to Python script in batch
- References:
- Re: Passing arguments to Python script in batch
- From: Francois Lord <francoislord(at)gmail.com>
- RE: Passing arguments to Python script in batch
- From: Marc-André Belzile <mbelzile(at)Softimage.COM>
- Re: Passing arguments to Python script in batch
- From: "Bernard Lebel" <3dbernard(at)gmail.com>
- RE: Passing arguments to Python script in batch
- From: "Halfdan Ingvarsson" <hingvars(at)Softimage.COM>
- Re: Passing arguments to Python script in batch
- From: "Bernard Lebel" <3dbernard(at)gmail.com>
- Re: Passing arguments to Python script in batch
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: Passing arguments to Python script in batch
- Next by Date: Re: Passing arguments to Python script in batch
- Previous by Thread: Re: Passing arguments to Python script in batch
- Next by Thread: Re: Passing arguments to Python script in batch
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |