RE: Custom Parameter Set - File Dialogue

Date : Tue, 3 Jul 2007 11:19:30 +0100
To : <XSI(at)Softimage.COM>
From : "Adam Seeley" <adam.seeley(at)clearpost.co.uk>
Subject : RE: Custom Parameter Set - File Dialogue
Cheers, directions kindly taken!
 
Adam.


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Stephen Blair
Sent: 29 June 2007 18:52
To: XSI(at)Softimage.COM
Subject: RE: Custom Parameter Set - File Dialogue

 
It all depends on what type of UI control you add to the PPG layout.
 
The parameter is a string because all it has to do is store a file path.
 
The UI control, on the other hand, is more than a text box...it also has a pop-up file browser.
 
 
 
Here's a snippet from the PPGDemos example in the SDK example workgroup:
 

oPSet.AddParameter3( "ExportFile", siString ) ;

var oPPGLayout = oPSet.PPGLayout ;

var oItem = oPPGLayout.AddItem( "ExportFile","Export Filename",siControlFilePath ) ;

// You can use the string directly, or the typdef siUIInitialDir (see siPPGItemAttribute enum)

oItem.SetAttribute( "initialdir", "project" ) ;

oItem.SetAttribute( siUIFileFilter, "Text files (*.txt)|*.txt|All Files (*.*)|*.*||" ) ;



From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Adam Seeley
Sent: Fri 29 June 2007 1:41 PM
To: XSI(at)Softimage.COM
Subject: Custom Parameter Set - File Dialogue

Hi,
 
it's Friday and I'm being a bit thick.
 
Could someone point me in the direction of how to get a File Dialogue box into a CP Set.
 
I've looked at a CPSet such as the Point_Oven_LW_import, and it saya that the Custom Parameter is of type Text.
 
I can't see how to create a new Custom Parameter that is of type Text, and make it into a File Dialogue though.
 
Many thanks,

Adam.
 
 
 
 

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.9.12/878 - Release Date: 28/06/2007 17:57


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.9.14 - Release Date: 29/06/2007 00:00


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.9.14/884 - Release Date: 02/07/2007 15:35


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.