We are trying to publish a MatchMove product from a Maya Scene that has a single camera. It fails at the Extract Camera (Maya Scene) step in the publish.
Here is my scene:
This is the relevant output:
File "C:\Users\joseph.henry\AppData\Local\Ynput\AYON\addons\maya_0.2.14\ayon_maya\plugins\publish\extract_camera_mayaScene.py", line 269, in transfer_image_planes
image_planes = cmds.listConnections(image_plane_plug,
ValueError: No object matches name: |pCube1|pCubeShape1.imagePlane
Is there an existing issue for this?
Current Behavior:
We are trying to publish a MatchMove product from a Maya Scene that has a single camera. It fails at the
Extract Camera (Maya Scene)
step in the publish.Here is my scene:
This is the relevant output:
After investigating, it seems that it boils down to this line: https://github.com/ynput/ayon-maya/blob/265d1d8c38113043518cb5c0a1924dd5b3dca8de/client/ayon_maya/plugins/publish/extract_camera_mayaScene.py#L146
It tries to get the cameras by filtering objects from the ones you selected. In my case it's a camera and a geo.
If I test this code:
So it tried to filter out the cameras (with
type="camera"
incmds.ls
) but it didn't work because it tries to get the.imagePlane
object on a geo.I found that using
cmds.ls(members, dag=True, type="camera")
works and prints{'cameraShape1'}
Expected Behavior:
It should filter the cameras out of the objects in the publish set.
Version
1.0.0
What platform you are running on?
Windows
Steps To Reproduce:
Are there any labels you wish to add?
Relevant log output:
No response
Additional context:
No response