Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maya manipulators ignore rotate/scale center options on usd objects #3412

Open
jufrantz opened this issue Oct 24, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@jufrantz
Copy link
Contributor

Describe the bug

Maya rotate and scale manipulators on usdUfe objects ignore rotate/scale center options. Transformation is always applied about each object pivot.

Steps to reproduce

  1. Create a mayaUsd proxyShape with xformable prims.
import maya.cmds
import mayaUsd.ufe
import mayaUsd_createStageWithNewLayer

maya.cmds.loadPlugin("mayaUsdPlugin", quiet=True)

proxyShape = mayaUsd_createStageWithNewLayer.createStageWithNewLayer()
shapeStage = mayaUsd.ufe.getStage(proxyShape)

shapeStage.GetRootLayer().ImportFromString('''#sdf 1
def Sphere "Sphere" 
{
}
def Cube "Cube" 
{
    double3 xformOp:translate = (5, 0, 0)
    uniform token[] xformOpOrder = ["xformOp:translate"]
}
''')
  1. Select Sphere then Cube prims and activate rotate manip.
maya.cmds.select(f"{proxyShape},/Sphere", f"{proxyShape},/Cube")
maya.cmds.setToolTo("RotateSuperContext")
  1. Set Rotate Center to Manip in tool settings or with manipRotateContext command.
maya.cmds.manipRotateContext("Rotate", e=True, useManipPivot=True, useObjectPivot=False, useCenterPivot=False)
  1. Manipulate and notice Sphere is not rotated about Cube's pivot as expected.

  2. Set it now to Selection

maya.cmds.manipRotateContext("Rotate", e=True, useCenterPivot=True, useObjectPivot=False, useManipPivot=False)
  1. Notice prims are not rotated about selection's center as expected.

Specs (if applicable):

  • CentOS 7.8
  • Maya 2023.3
  • maya-usd 0.25
  • USD 22.11
@jufrantz jufrantz added the bug Something isn't working label Oct 24, 2023
@neilh-adsk neilh-adsk moved this to Needs triage in maya-usd Nov 6, 2023
@maya-usd-git-sync
Copy link

Issue synced internally to EMSUSD-839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Needs triage
Status: Needs triage
Development

No branches or pull requests

2 participants