Message 1 of 6
Maya 2022 crashes when accessing MIntArray with negative indices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I was testing the new Maya 2022 in its Python 3 mode and encountered some problem.
I realized that some scripts those worked in earlier version just crashes Maya 2022.
I did a quick research about that and extracted a simple code that can reproduce the error.
from maya.api import OpenMaya
# create an OpenMaya.MIntArray object
temp_list = OpenMaya.MIntArray([0,1])
# accessing array's member using negative index crashes Maya 2022 with fatal error
print(temp_list[-1])
I'm running Maya 2022.0 in Windows 10.
As a workaround, I'm using a little function to convert negative indices to positive ones.
Is it a problem that occurs just in my environment?
Best Regards,
Honda