pymel.core.general.validComponentIndexType

validComponentIndexType(argObj, allowDicts=True, componentIndexTypes=None)

True if argObj is of a suitable type for specifying a component’s index. False otherwise.

Dicts allow for components whose ‘mel name’ may vary - ie, a single isoparm component may have, u, v, or uv elements; or, a single pivot component may have scalePivot and rotatePivot elements. The key of the dict would indicate the ‘mel component name’, and the value the actual indices.

Thus:
{‘u’:3, ‘v’:(4,5), ‘uv’:ComponentIndex((1,4)) }
would represent single component that contained:
.u[3] .v[4] .v[5] .uv[1][4]

Derived classes should implement: _dimLength

Previous topic

pymel.core.general.upAxis

Next topic

pymel.core.general.xform

Core

Core Modules

Other Modules

This Page