mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merged in feature/faster_loader_actions (pull request #357)
feature/ faster loader actions menu Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
commit
cb6ffb0f63
4 changed files with 5 additions and 7 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
from avalon import api
|
from avalon import api
|
||||||
import pype.maya.plugin
|
import pype.maya.plugin
|
||||||
import os
|
import os
|
||||||
import pymel.core as pm
|
|
||||||
from pypeapp import config
|
from pypeapp import config
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -70,6 +69,7 @@ class AssProxyLoader(pype.maya.plugin.ReferenceLoader):
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from maya import cmds
|
from maya import cmds
|
||||||
|
import pymel.core as pm
|
||||||
|
|
||||||
node = container["objectName"]
|
node = container["objectName"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ from avalon import api
|
||||||
import pype.maya.plugin
|
import pype.maya.plugin
|
||||||
import os
|
import os
|
||||||
from pypeapp import config
|
from pypeapp import config
|
||||||
import pymel.core as pm
|
|
||||||
reload(config)
|
reload(config)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import pymel.core as pc
|
|
||||||
|
|
||||||
from avalon import api
|
from avalon import api
|
||||||
from Qt import QtWidgets
|
from Qt import QtWidgets
|
||||||
|
|
||||||
|
|
@ -14,6 +12,8 @@ class ImagePlaneLoader(api.Loader):
|
||||||
color = "orange"
|
color = "orange"
|
||||||
|
|
||||||
def load(self, context, name, namespace, data):
|
def load(self, context, name, namespace, data):
|
||||||
|
import pymel.core as pc
|
||||||
|
|
||||||
new_nodes = []
|
new_nodes = []
|
||||||
image_plane_depth = 1000
|
image_plane_depth = 1000
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
import pype.maya.plugin
|
import pype.maya.plugin
|
||||||
import os
|
import os
|
||||||
from pypeapp import config
|
from pypeapp import config
|
||||||
import pymel.core as pm
|
|
||||||
reload(config)
|
reload(config)
|
||||||
import pype.maya.plugin
|
import pype.maya.plugin
|
||||||
reload(pype.maya.plugin)
|
reload(pype.maya.plugin)
|
||||||
|
|
@ -20,9 +18,10 @@ class ReferenceLoader(pype.maya.plugin.ReferenceLoader):
|
||||||
color = "orange"
|
color = "orange"
|
||||||
|
|
||||||
def process_reference(self, context, name, namespace, data):
|
def process_reference(self, context, name, namespace, data):
|
||||||
|
|
||||||
import maya.cmds as cmds
|
import maya.cmds as cmds
|
||||||
from avalon import maya
|
from avalon import maya
|
||||||
|
import pymel.core as pm
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
family = context["representation"]["context"]["family"]
|
family = context["representation"]["context"]["family"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue