Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Remove remaining unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Oct 30, 2023
1 parent 246c408 commit 90c8922
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions openpype/hosts/maya/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@
INT_FPS = {15, 24, 25, 30, 48, 50, 60, 44100, 48000}
FLOAT_FPS = {23.98, 23.976, 29.97, 47.952, 59.94}

RENDERLIKE_INSTANCE_FAMILIES = ["rendering", "vrayscene"]


DISPLAY_LIGHTS_ENUM = [
{"label": "Use Project Settings", "value": "project_settings"},
Expand Down Expand Up @@ -3034,41 +3032,6 @@ def _cleanOldShelf(self):
cmds.shelfLayout(self.name, p="ShelfLayout")


def _get_render_instances():
"""Return all 'render-like' instances.
This returns list of instance sets that needs to receive information
about render layer changes.
Returns:
list: list of instances
"""
objectset = cmds.ls("*.id", long=True, exactType="objectSet",
recursive=True, objectsOnly=True)

instances = []
for objset in objectset:
if not cmds.attributeQuery("id", node=objset, exists=True):
continue

id_attr = "{}.id".format(objset)
if cmds.getAttr(id_attr) != "pyblish.avalon.instance":
continue

has_family = cmds.attributeQuery("family",
node=objset,
exists=True)
if not has_family:
continue

if cmds.getAttr(
"{}.family".format(objset)) in RENDERLIKE_INSTANCE_FAMILIES:
instances.append(objset)

return instances


def update_content_on_context_change():
"""
This will update scene content to match new asset on context change
Expand Down

0 comments on commit 90c8922

Please sign in to comment.