Problem with geometry attribute as array...

Problem with geometry attribute as array...

syntetik1
Explorer Explorer
508 Views
0 Replies
Message 1 of 1

Problem with geometry attribute as array...

syntetik1
Explorer
Explorer

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 Likes
509 Views
0 Replies
Replies (0)