Message 1 of 3
How do I set the file type for a string attribute?

Not applicable
01-07-2018
12:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a custom node with a string attribute which I have set to be treated as a filename by calling MFnAttribute::setUsedAsFilename(true).
When the Attribute Editor displays the attribute it provides a folder icon that brings up a file dialog. However, the 'Files of type' field at the bottom of the dialog is always set to 'Image Files'. My attribute is not for image files so I would prefer to have the browser come up with that field set to 'All Files'.
Does anyone know of a way to do that?