RE: [scripting] - how to create columns using PPGLayout

Date : Mon, 11 Jul 2005 15:06:14 -0400
To : <XSI(at)Softimage.COM>
From : "Biju Ramachandran" <biju.ramachandran(at)ubisoft.com>
Subject : RE: [scripting] - how to create columns using PPGLayout
Thanks Bernard - but if I have  one parameter with a list of Radio
button controls and I wanted them to be formatted in two columns rather
than having a single long list. If you look at the code below - I have a
list of lens - and was wondering if there is a way of formatting them in
two columns (if I add more lenses )

var oRoot =ActiveProject.ActiveScene.Root;
var oCustomProperty =
oRoot.AddProperty("CustomProperty",0,"FixedLensControls");
var oParVal = oCustomProperty.AddParameter("Lens",siInt4);
var oLayout = oCustomProperty.PPGLayout;
var aRadioItems = Array("10mm", 0,"15mm", 1, "18mm", 2,"20mm", 3
,"24mm", 4 ,"28mm", 5, "35mm", 6, "50mm", 7, "85mm", 8, "100mm", 9,
"135mm", 10, "150mm", 11, "200mm",12 ) ;
oLayout.AddEnumControl ("Lens", aRadioItems,"" ,siControlRadio );
InspectObj (oCustomProperty);


Thanks

Biju

-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Bernard Lebel
Sent: Monday, July 11, 2005 12:19 PM
To: XSI(at)Softimage.COM
Subject: Re: [scripting] - how to create columns using PPGLayout

Hey Biju,
It's certainly possible. You have to use the AddRow() method. To gettwo
column, put two Add|Item() in each AddRow().
CheersBernard

On 7/11/05, Biju Ramachandran <biju.ramachandran(at)ubisoft.com> wrote:>  >
> > Hi there: > >   > > Using PPGLayout - is it possible to display list
of parameters in two> columns > >   > > Here is the jscript code that >
>   > > var>
Lensarray=Array(10,15,18,20,24,28,35,50,85,100,135,150,200);> >
var oCustomProperty =>
selection(0).AddProperty("CustomProperty",0,"FixedLensControls"> ) ; > >
var oParVal = oCustomProperty.AddParameter("Lens",> siInt4); > >
var oLayout = oCustomProperty.PPGLayout > >                     var
aRadioItems = Array("10mm", 0,"15mm", 1, "18mm", 2,> "20mm", 3 ,"24mm",
4 ,"28mm", 5, "35mm", 6, "50mm", 7, "85mm", 8, "100mm",> 9, "135mm", 10,
"150mm", 11, "200mm",12 ) ; > >
oLayout.AddEnumControl ("Lens", aRadioItems,"" ,> siControlRadio ); > >
InspectObj (oCustomProperty); > >   > >   > > Thanks > >   > > Biju
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
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.