pymel.core.datatypes.equivalentSpace¶
- equivalentSpace(space1, space2, rotationOnly=False)¶
Compare the two given space values to see if they are equal
Parameters: - space1 (int or str) – the first space to compare (may be either the integer enum value, or the api enum name - ie, “kPostTransform” - or the pymel enum name - ie, “postTransform” )
- space2 (int or str) – the seoncd space to compare (may be either the integer enum value, or the api enum name - ie, “kPostTransform” - or the pymel enum name - ie, “postTransform”)
- rotationOnly (bool) – If true, then compare the spaces, assuming we are only considering rotation - in rotation, transform is the same as preTransform/object (the reason being that in maya, preTransform means rotation + translation are both defined in the preTransform/object coordinate system, while transform means rotation is defined in preTransform/object coordinates, while translate is given in the postTransform space... which matches the way maya applies transforms)