Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Is Python Supported?

Is Python Supported?

2004-02-12       - By Jerry Gamache

 Back
Reply:     1     2     3     4  

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