View Full Version : Fill in the blanks

11 November 2006, 12:36 AM
Hey all,

I'm trying to create a UI that points to a file after I have selected it through a fileDialog.

Here is a sample of the code I have:

global proc fileDialogLookup()
// The fileBrowserDialog is iffy to me, not sure if this is the correct usage
fileDialog -directoryMask "C:/myDocs/Projects/*.ma";

fileBrowserDialog -m 1 -fc tfUp;

global proc tfUp()
// This is where I have a textfield update proc(this doesn't work)
string $fileName;

file -import $fileName;

textFieldButtonGrp -e -tx $fileName textFieldName;

Any help is appreciated.


11 November 2006, 01:20 AM
use the fileDialog.mel is cross plateform and better.(though I don't remember directory masking off hand)...also see Rob the Bloke's mel file handling tips on his site.... (

but I don't understand what you want to you want to open an existing file and read it's data or save a file to be read later...??

11 November 2006, 01:37 AM
Someone else had a similar problem a little while ago. See if this thread helps:

11 November 2006, 03:30 AM
Thanks folks,

This helps out a bunch. I'll keep the thread up to date on the progress.


CGTalk Moderation
11 November 2006, 03:30 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.