Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 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