Area :: Header
Announcing Smoke 2015
Extension 1!
Now with the LUT Editor and Matchbox in the timeline.
Discussion Groups


Active Member
Posts: 7
Registered: ‎06-26-2013

SDK parameter block : How to do a fileName + fileOpen Button combo

48 Views, 1 Replies
08-15-2013 02:58 PM

I am having trouble understanding how to do parameters properly : There seems to be no documented way of setting variables in the string table, or how to set up .rc files. I have a plugin where the user can select the file he wants to open. So far I have a hacky fileName string edit box running for that. I would like to have a string edit box + file open button combo to work so that the user can browse the file from that button, or if he wants, just set the file name directly from max script. A similar save button would also be desired at some point. But my guess is that it is pretty close in implementation to the open combo. I have also attached an image depicting what I need.


My current implementation looks like this :

cacheReader_fileName,         _T("fileName"),         TYPE_FILENAME,     P_ANIMATABLE,     IDS_FILENAME,
        //Zero or more optional tags
        p_default,         "",
        p_ui,             TYPE_EDITBOX,        IDC_FILENAME,

Please use plain text.
Valued Contributor
Posts: 93
Registered: ‎09-24-2005

Re: SDK parameter block : How to do a fileName + fileOpen Button combo

08-31-2013 02:35 PM in reply to: hb299
i am sure there exists an example in the sdk.. make an edit field with pblock and a simple windows std button. assign the string to the edit field from the fileopen dialog with pblock->setvalue()
Please use plain text.