RE: Get Custom Property from within DefineLayout

Date : Wed, 12 Oct 2005 12:40:50 -0400
To : <XSI(at)Softimage.COM>
From : "Stephen Blair" <stephen_blair(at)Softimage.COM>
Subject : RE: Get Custom Property from within DefineLayout
 
I had a hard time myself finding that info about getting the CustomProp...
 
DefineLayout is not fired every time the PPG is opened, only when the property is first created or when the PPG is refreshed. So, if you want to dynamically add and remove controls, define the layout in siOnInit.
 
If you are simply enabling / disabling existing controls, or setting the default values displayed in the controls, you can define the layout in DefineLayout and initialize the PPG in siOnInit.
 
 
Steve
 
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf Of Alan Jones
Sent: Wed 12 October 2005 12:16 PM
To: xsi(at)Softimage.COM
Subject: Re: Get Custom Property from within DefineLayout

Now that you've all hopefully stopped laughing at me. I see this could be done through the siOnInit event context. Seeing some of my data is dynamic should I be doing the full layout and modification within the siOnInit function and having no layout done within the DefineLayout function? Or can I use the DefineLayout to take existing data and build extra parameters and interface elements?

If both are possible is there any particular advantage to either way?

Cheers,

Alan.

On 10/12/05, Alan Jones < skyphyr(at)gmail.com> wrote:
Hi All,

Writing a C++ Custom Property and would like to get my grubby mits on the CustomProperty from the PPGLayout I got from the Context.

Didn't spot anything in the PPGLayout class specs that seemed to be willing to hand it straight to me. Anyone got a hint?

No luck on the wiki either, but if someone tells me then I'll write it up there ;-)

Cheers,

Alan.


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.