Re[8]: scripting: getting the whole property list of an object

Date : Tue, 3 Apr 2007 10:00:15 +0200
To : Bernard Lebel <XSI(at)Softimage.COM>
From : Frank Lenhard <franky(at)ixdream.com>
Subject : Re[8]: scripting: getting the whole property list of an object
no way! i got it RUN!! :)
1st, the lines need to be correctly indent! if they are not it doesnt
run at all.
and then the logmessage shoulnt be the first line, as the function
gets defined laters.. sigh.
but thanks you bernard and stephen for you help! i wouldnt have made
it.

ciao
franky


Monday, April 2, 2007, 7:04:44 PM, you wrote:

BL> Ah yeah it seems XSI-Blog mangles the triple double-quotes.
BL> At the beginning of the GetFunctions function, you'll see text
BL> encapulated by a pair of three double-quotes (" x 3). Some are
BL> incorrect, they should all be """. You'll have to retype them.


BL> Cheers
BL> Bernard


BL> PS: wait, I feel generous today. Here is the corrected text:
BL> """returns a sorted and unique list of all functions defined in a
BL> dynamic dispatch"""



BL> On 4/2/07, Frank Lenhard <franky(at)ixdream.com> wrote:
>> if i do that i get the next error at line5, if i delete that on i get
>> the next syntax error at dict=() .... i am sorry to bother you guys,
>> but i have no idea where to go else... in vb i could figure it out
>> somehow, but python is like chinese to me...
>>
>>
>> ciao
>> franky
>>
>>
>> Monday, April 2, 2007, 3:40:42 PM, you wrote:
>>
>> SB> Remove the period (.) at the end of the first line of your script.
>>
>>
>> SB> -----Original Message-----
>> SB> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
>> SB> Of Frank Lenhard
>> SB> Sent: Mon 02 April 2007 9:42 AM
>> SB> To: Bernard Lebel
>> SB> Subject: Re[4]: scripting: getting the whole property list of an object
>>
>> SB> see the attachement. i hope it can explain better than my words.
>> SB> thanks for looking at it! and i installed python just for the sake of
>> SB> being able to execute python scripts. i have no clue about it and
>> SB> scripting with it at all :/ sigh....
>>
>>
>>
>> SB> ciao
>> SB> franky
>>
>>
>> SB> 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
>> SB> 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
>> SB> in body:
>> >>> BL> unsubscribe xsi
>> >>>
>> >>>
>> >>> ---
>> >>> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
>> SB> body:
>> >>> unsubscribe xsi
>> >>>
>> BL>> ---
>> BL>> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
>> SB> body:
>> BL>> unsubscribe xsi
>>
>> SB> ---
>> SB> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
>> SB> 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


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.