About Me

Monday, September 6, 2010

fileBrowserDialog is no more! Thankyou Pymel!

Anybody who's used the Maya fileBrowserDialog command will know what a pain in the arse it is, having to always pass in a function for it to use on the returned selection. Why the hell couldn't it just give you back the path.
import pymel.core as pCore
print 'Folder Selected : %s' % (pCore.promptForFolder())
import pymel.core as pCore
print 'File Selected : %s' % (pCore.promptForPath())
Well, no more, I might have guessed that Chad would have simplified this and bingo Pymel promptForFolder() and promptForPath() functions. At last, it opens the file prompt window and just gives you back the return.

Chad,Pymel thankyou!

No comments:

Post a Comment