mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
use color hex instead of constans in nuke plugins
This commit is contained in:
parent
3ba3b28622
commit
d5c35d1873
7 changed files with 19 additions and 14 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from avalon import api, style
|
||||
from avalon import api
|
||||
from openpype.api import Logger
|
||||
from openpype.hosts.nuke.api.lib import set_avalon_knob_data
|
||||
|
||||
|
|
@ -7,7 +7,7 @@ class RepairOldLoaders(api.InventoryAction):
|
|||
|
||||
label = "Repair Old Loaders"
|
||||
icon = "gears"
|
||||
color = style.colors.alert
|
||||
color = "#cc0000"
|
||||
|
||||
log = Logger.get_logger(__name__)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from avalon import api, style, io
|
||||
from avalon import api, io
|
||||
import nuke
|
||||
import nukescripts
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ class LoadBackdropNodes(api.Loader):
|
|||
label = "Iport Nuke Nodes"
|
||||
order = 0
|
||||
icon = "eye"
|
||||
color = style.colors.light
|
||||
color = "white"
|
||||
node_color = "0x7533c1ff"
|
||||
|
||||
def load(self, context, name, namespace, data):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
import json
|
||||
from collections import OrderedDict
|
||||
import nuke
|
||||
from avalon import api, style, io
|
||||
from avalon import api, io
|
||||
|
||||
from openpype.hosts.nuke.api import (
|
||||
containerise,
|
||||
update_container,
|
||||
|
|
@ -18,7 +19,7 @@ class LoadEffects(api.Loader):
|
|||
label = "Load Effects - nodes"
|
||||
order = 0
|
||||
icon = "cc"
|
||||
color = style.colors.light
|
||||
color = "white"
|
||||
ignore_attr = ["useLifetime"]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ from collections import OrderedDict
|
|||
|
||||
import nuke
|
||||
|
||||
from avalon import api, style, io
|
||||
from avalon import api, io
|
||||
|
||||
from openpype.hosts.nuke.api import lib
|
||||
from openpype.hosts.nuke.api import (
|
||||
containerise,
|
||||
|
|
@ -21,7 +22,7 @@ class LoadEffectsInputProcess(api.Loader):
|
|||
label = "Load Effects - Input Process"
|
||||
order = 0
|
||||
icon = "eye"
|
||||
color = style.colors.alert
|
||||
color = "#cc0000"
|
||||
ignore_attr = ["useLifetime"]
|
||||
|
||||
def load(self, context, name, namespace, data):
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import nuke
|
||||
from avalon import api, style, io
|
||||
from avalon import api, io
|
||||
|
||||
from openpype.hosts.nuke.api.lib import (
|
||||
maintained_selection,
|
||||
get_avalon_knob_data,
|
||||
|
|
@ -21,7 +22,7 @@ class LoadGizmo(api.Loader):
|
|||
label = "Load Gizmo"
|
||||
order = 0
|
||||
icon = "dropbox"
|
||||
color = style.colors.light
|
||||
color = "white"
|
||||
node_color = "0x75338eff"
|
||||
|
||||
def load(self, context, name, namespace, data):
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
from avalon import api, style, io
|
||||
from avalon import api, io
|
||||
import nuke
|
||||
|
||||
from openpype.hosts.nuke.api.lib import (
|
||||
maintained_selection,
|
||||
create_backdrop,
|
||||
|
|
@ -22,7 +23,7 @@ class LoadGizmoInputProcess(api.Loader):
|
|||
label = "Load Gizmo - Input Process"
|
||||
order = 0
|
||||
icon = "eye"
|
||||
color = style.colors.alert
|
||||
color = "#cc0000"
|
||||
node_color = "0x7533c1ff"
|
||||
|
||||
def load(self, context, name, namespace, data):
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import nuke
|
||||
from avalon import api, style, io
|
||||
from avalon import api, io
|
||||
|
||||
from openpype.hosts.nuke.api.lib import get_avalon_knob_data
|
||||
from openpype.hosts.nuke.api import (
|
||||
containerise,
|
||||
|
|
@ -17,7 +18,7 @@ class LinkAsGroup(api.Loader):
|
|||
label = "Load Precomp"
|
||||
order = 0
|
||||
icon = "file"
|
||||
color = style.colors.alert
|
||||
color = "#cc0000"
|
||||
|
||||
def load(self, context, name, namespace, data):
|
||||
# for k, v in context.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue