Is Python Supported? 2004-02-12 - By Jerry Gamache
Back Hi Rick,
Python really wants a function to do something. An empty function needs at least a "pass" statement to prove you intended the function to do nothing. That 's probably why it complained, but now everything should be fine since you know the indentation trick.
Have fun!
Jerry.
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf Of Rick Walia Posted At: Wednesday, February 11, 2004 1:05 PM Posted To: xsi Conversation: [Scripted Ops] Is Python Supported? Subject: RE: [Scripted Ops] Is Python Supported?
Hi Jerry,
> In the top of the script edit box, you see: > > def Update(In_UpdateContext, Out, Inglobal):
Doh! I didn't even see that function declaration!
> This basically means that everything in that edit box needs to be indented once > to follow Python's function declaration syntax.
Alrighty, now I know, we're in a function now.
Why the script errors before I type code? XSI seems to be parsing the ScOP before I do anything.
Indentation errors when nothing is written is a bit presumptuous.
Thanks for your help,
/R
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|