Message 1 of 2
OpenMaya API 2.0 MIteratorType

Not applicable
05-29-2021
06:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
in OpenMaya API 1.0 MIteratorType has function - setFilterList
void MIteratorType::setFilterList(MIntArray & listOfFilters, MStatus * ReturnStatus = NULL)
in OpenMaya API 2.0 MIteratorType has properly- filterList
OpenMaya.MIteratorType.filterList = property(...)
I can't find any information how use API 2.0 filterList.
For API 1.0 i see:
import maya.OpenMaya as OpenMaya
mIntArray = OpenMaya.MIntArray()
mIntArray.append( OpenMaya.MFn.kTransform )
mIteratorType = OpenMaya.MIteratorType()
mIteratorType.setFilterList( mIntArray )
But how use in API 2.0?
Any helps?
Thanks.