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

Date : Tue, 12 Jul 2005 09:04:06 -0400
To : <XSI(at)Softimage.COM>
From : "Biju Ramachandran" <biju.ramachandran(at)ubisoft.com>
Subject : RE: [scripting] - how to create columns using PPGLayout

I am writing a script that lists out all the Camera Focal length that the current project will be using, when selected it will change the FOV.

With Radio button, I found it is snappy – visually its easy for comparison

 

Biju


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of kim aldis
Sent: Tuesday, July 12, 2005 2:30 AM
To: XSI(at)Softimage.COM
Subject: RE: [scripting] - how to create columns using PPGLayout

 

or a grid, even.

 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Schoenberger
Sent: 12 July 2005 00:16
To: XSI(at)Softimage.COM
Subject: RE: [scripting] - how to create columns using PPGLayout

 

Why don't you use a drowdown-list?

 

Holger Schönberger
technical director
The day has 24 hours, if that does not suffice, I will take the night

 

 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Biju Ramachandran
Sent: Monday, July 11, 2005 5:59 PM
To: XSI(at)Softimage.COM
Subject: [scripting] - how to create columns using PPGLayout

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


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.