Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 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?

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads