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