How to get PPG object?

Date : Tue, 21 Mar 2006 11:06:46 +0100
To : xsi(at)Softimage.COM
From : "Arvid Björn" <arvidbjorn(at)gmail.com>
Subject : How to get PPG object?
Hey, I'm having problems with a self-installed plugin. It used to work
when I had it in siModal-mode, as I executed everything within the
startup procedure. I had easy access to the ppg-object as it was
created like this:

var oProp = ActiveSceneRoot.AddProperty( "CustomProperty", false, "myTool" ) ;

Now, since I've rearranged the tool as a regular floating PPG, and the
code is moved to a button in that PPG I get "object expected"-errors
all over the code. I tried this:

var oProp = PPG.Inspected(0);

But I'm not sure which object I actually get from that, but clearly
it's not working. What's the correct way to get this object after it's
allready been created?


Thanks a bunch
-arvid

--
stockholm.postproduction | www.stopost.se

---
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.