Ramp attribute crash in compound attribute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey,
I am making a C++ plugin and I have a weird crash when using MRampAttributes.
I have an MPxNode, which has a child array of compound attributes.
When I try to add one or more ramp attributes as a child to this compound, Maya crashes when loading the plugin without providing a stack-trace in the Output window.
So the desired structure would be:
node.childCompoundArray[0].rampAttribute
Sometimes the plugin works with one ramp attribute added, but crashes when I add another one next to the first.
(node.childCompoundArray[0].rampAttributeB)
Any ideas why this may happen?
Does Maya prohibit using ramp attributes as child attributes / in an array?
Or can this be the fault of having multiple ramp attributes next to each other?
I have not found anything in the official documentation on this matter.
I am using the Maya 2019 API.
Thanks in advance,
Peter