RE: Get Custom Property from within DefineLayout

Date : Wed, 12 Oct 2005 13:03:56 -0400
To : <XSI(at)Softimage.COM>
From : "Stephen Blair" <stephen_blair(at)Softimage.COM>
Subject : RE: Get Custom Property from within DefineLayout
CustomProperty does have a GetPPGLayout member function.
 
GetPPGLayout is inherited from ProjectItem, so you don't see it on the CustomProperty reference page, you have to click List of all members
 
 
 
-----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:56 PM
To: XSI(at)Softimage.COM
Subject: Re: Get Custom Property from within DefineLayout

Hi Stephen,

Thanks for that. I'll won't be adding things every time - though they will be getting added from time to time. So siOnInit seems to be the way to go.

In JScript I can just grab the PPGLayout from the CustomProperty.PPGLayout - it's not there in the C++ CustomProperty class. What's the C++ alternative?

Cheers,

Alan.

On 10/12/05, Stephen Blair <stephen_blair(at)softimage.com> wrote:
 
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.