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: Camera Publish resets image plane to default view size #411

Closed
2 tasks done
BigRoy opened this issue Apr 11, 2024 · 0 comments · Fixed by #412
Closed
2 tasks done

Maya: Camera Publish resets image plane to default view size #411

BigRoy opened this issue Apr 11, 2024 · 0 comments · Fixed by #412
Labels
host: Maya type: bug Something isn't working

Comments

@BigRoy
Copy link
Collaborator

BigRoy commented Apr 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

If you publish a camera instance then currently any image planes that are attached to the camera are detached during the extraction and re-attached afterwards. This re-attaching has the side effect that Maya resets the image plane to the default "fit to view" sizes and position.

The issue basically occurs on this line of code:

cmds.imagePlane(image_plane, edit=True, camera=camera)

As the maya docs state:

When the image plane is attached to a camera, the image plane's transform node will be set identity.

Expected Behavior:

Image planes (and the rest of the scene) should remain as they were before to the publish.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. Apply an image plane to the camera
  2. Change the Placement > "size" of the image plane
  3. Publish the camera
  4. The image plane's placement has now been reset due to the publish.

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

No response

Additional context:

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
host: Maya type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant