Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with geometry attribute as array...

0 REPLIES 0
Reply
Message 1 of 1
syntetik1
305 Views, 0 Replies

Problem with geometry attribute as array...

hello,

 

I wonder if Maya supports geometry array attribute. I am working on custom deformer node. In initialize method I described something like this:

 

MFnGenericAttribute gAttr;

aMyGeo = gAttr.create("myGeo", "myGeo");
gAttr.addAccept ( MFnData::kMesh );
gAttr.setArray(true);
gAttr.setStorable(false);
addAttribute(aMyGeo);

 

Now when I try to access this attribute as MArrayDataHandle I am getting immediate Maya crash. I wonder if I need to create array compound instead and have a single geometry attribute per each compund array element.

 

Maya Maya can only create array attributes with values like vectors and scalars?

 

Thanks for any advice.

 

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report