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