Skip to content

Commit

Permalink
add fileName in imagePlane cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementHector committed Dec 2, 2021
1 parent 3c7b622 commit 9318965
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions openpype/hosts/maya/plugins/load/load_image_plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,12 @@ def load(self, context, name, namespace, data, options=None):

# Create image plane
image_plane_transform, image_plane_shape = pm.imagePlane(
fileName=context["representation"]["data"]["path"],
camera=camera, showInAllViews=is_in_all_views
)
image_plane_shape.depth.set(image_plane_depth)

image_plane_shape.imageName.set(
context["representation"]["data"]["path"]
)

if is_static_image_plane:
image_plane_shape.setMaintainRatio(True)
image_plane_shape.detach()
image_plane_transform.setRotation(camera.getRotation())

Expand Down

0 comments on commit 9318965

Please sign in to comment.