View Single Post
# 1 15-01-2009 , 12:40 PM
Registered User
Join Date: Jan 2009
Posts: 1

How create file-open attribute?

I have written a plugin that allows objects to be scattered on surface. But I cant find the set of attributes. I need to create an attribute that looks in Maya Attribute Editor like this:
user added image
as well as other attribute that looks in Maya Attribute Editor like this:
user added image
Simple MFnTypedAttribute with the MFnData:: kString
Code:
MFnTypedAttribute strAttr;
mobjString = strAttr.create("ScatterFileName", "sfn", MFnData:: kString);
looks like
user added image
I am not very satisfied.
How can I create required attribute?