Autodesk / maya-usd

A common USD (Universal Scene Description) plugin for Autodesk Maya
768 stars 201 forks source link

Reparenting a proxyshape? #2292

Closed santosd closed 2 years ago

santosd commented 2 years ago

Discussed in https://github.com/Autodesk/maya-usd/discussions/2273

Originally posted by **pierre-ed** April 11, 2022 Hi everyone. Here I go again :) with yet another painfully simple question: is reparenting a proxyshape under another transform supported? My current testing scenario is pretty straightforward: I load a `mayaUsdProxyShape` using `Create->USD->Stage From File`, and then reparent the created proxyshape under an existing transform using `cmds.parent(proxyshape, new_parent, shape=True, relative=True)`. This operation triggers no error, but the proxyshape vanishes from the VP2 renderer (even after a call to `cmds.refresh(force=True)`). Internally, computations seem correct however, since my proxyshape reappears with the expected transform when I switch renderer to the GL Hydra render delegate. ![20220411__maya__reparent2](https://user-images.githubusercontent.com/5444972/162754627-fd4deed6-af24-4e2e-a384-3342e91d9c22.gif) Am I missing something? Is there a workaround to force the refreshing of the scene or render delegate behind the vp2RenderDelegate? Thanks in advance for your insight. -- Pierre #### Specs - OS & version: CentOS Linux release 7.6.1810 (Core) - Compiler & version: gcc (GCC) 6.3.1 20170216 - Maya version: Maya 2022.3 - Maya USD: 0.15.0 - Pixar USD: 21.11
santosd commented 2 years ago

Closing this one out as it is a duplicate of https://github.com/Autodesk/maya-usd/issues/2281