Skip to content

EulerRotation.copy() discards rotation order #458

@kimonmatara

Description

@kimonmatara

Assigning to .order on instances of EulerRotation is a functional way to, for example, change the solutions yielded by the asMatrix() method. It's therefore a functionally significant attribute, and I would have expected it to persist after a copy() operation:

import pymel.core as p
originalRotation = p.datatypes.EulerRotation([0, 1, 2])
originalRotation.order = 'ZXY'
print(originalRotation.order)
# 'ZXY'

rotationCopy = originalRotation.copy()
print(rotationCopy.order)
# 'XYZ'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions