Remove the period (.) at the end of the first line of your script.
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Frank Lenhard
Sent: Mon 02 April 2007 9:42 AM
To: Bernard Lebel
Subject: Re[4]: scripting: getting the whole property list of an object
see the attachement. i hope it can explain better than my words.
thanks for looking at it! and i installed python just for the sake of
being able to execute python scripts. i have no clue about it and
scripting with it at all :/ sigh....
ciao
franky
Monday, April 2, 2007, 1:19:49 PM, you wrote:
BL> What version are you using? Someone on XSI Base (perhaps it was
BL> you?) reported that Python was gone from the list of languages in
XSI 6.01.
BL> As for the error, it's really hard to tell without seeing.
BL> For the contextual menu, the languages *should* be there as of XSI
BL> 5.0. However sometimes, for some mysterious reason, they no longer
BL> show up in the menu (until you restart XSI).
BL> Cheers
BL> Bernard
BL> On 4/2/07, Frank Lenhard <franky(at)ixdream.com> wrote:
>> thanks bernard!
>> however, the script doesnt wanna run and i suspect that my python
>> setup is not right. i once installed it and i have it available in
>> the preferences of the script editor.
>> but when i try to run the script (f5) it just gives me syntax errors
>> in each line.
>> then, i dunno how to replicate this, i clicked right in the script
>> editor and the context menue gave me the script languages to choose
>> from (vbasic, jscript) and python was greyed out there. but then, i
>> never saw this context menue again, because usually it doesnt show
>> the scripting languages.
>> sigh, it sounds really good because it gives me everything that is
>> accessable on a object not just the properties.
>>
>> i might try to replicate it in vbasic (thats what i know a little)
>> but in general... getting started with scripting in xsi is everything
>> but easy.
>>
>> ciao
>> franky
>>
>>
>> Sunday, April 1, 2007, 11:09:05 PM, you wrote:
>>
>> BL> If you're a Python user, check this out:
>> BL> http://www.xsi-blog.com/archives/19
>>
>> BL> Also, the SDK Explorer is your friend :-)
>>
>>
>> BL> Cheers
>> BL> Bernard
>>
>>
>>
>>
>> BL> On 4/1/07, Frank Lenhard <frank.lenhard(at)gmail.com> wrote:
>> >> i am sorry if this is totally obvious and beginners stuff (that
>> >> what i am anyhow to scripting) but:
>> >>
>> >> how can logmessage all properties that exist on a object, so i can
>> >> change them later using the object model?
>> >> i need the syntax to access stuff like visibility, position, null
>> >> shapes etc.
>> >> i find some stuff for dedicated objects like nulls and others, but
>> >> in general i would like to select a object and get a list with all
>> >> available properties.
>> >>
>> >>
>> >> thanks a lot
>> >> ciao
>> >> franky
>> >>
>> >>
>> BL> ---
>> BL> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text
in body:
>> BL> unsubscribe xsi
>>
>>
>> ---
>> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
>> unsubscribe xsi
>>
BL> ---
BL> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
BL> unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi