Skip to content

Commit 204ff8f

Browse files
authored
Merge pull request #31 from weijer/add_lin_and_other_gizmo
Add lin and other gizmo
2 parents 73c2cc7 + f2dfdbd commit 204ff8f

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
大部分都是这几年干合成用到的,有些自己写的,有些朋友写的,有些网上down的!现在免费开源共享,希望大家都来共享自己的nuke插件!
44

55
### 更新说明
6+
#### 2025-5-22
7+
8+
1. 增加若干常用gizmo
9+
2. 修复 Switch Shot 支持>QT5
10+
3. 修复 Replace Read Node Path 支持>QT5
11+
3. 修复 PresetBackdrop 类型错误
12+
613
#### 2025-3-3
714

815
1. 支持Nuke 16

python/ToolSet/presetBackdrop.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ def presetBackdrop():
5353
r = presetColor[0]
5454
g = presetColor[1]
5555
b = presetColor[2]
56-
hexColour = int('%02x%02x%02x%02x' % (r * 255, g * 255, b * 255, 1), 16)
56+
# 显式转换为整数
57+
hexColour = int('%02x%02x%02x%02x' % (
58+
int(r * 255),
59+
int(g * 255),
60+
int(b * 255),
61+
1
62+
), 16)
5763

5864
if presetIcon == '':
5965
icon = ''

python/ToolSet/replace_read_node_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def do_replace(self):
5757

5858

5959
def main():
60-
app = QtGui.qApp
60+
app = QtGui.QApplication
6161
global rp
6262
try:
6363
rp.close()

python/ToolSet/switch_shot.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
# Built-in modules
1212
from Qt import QtWidgets as QtGui
1313
from Qt import QtCore as QtCore
14+
15+
try:
16+
from Qt.QtWidgets import QIcon
17+
except ImportError:
18+
from Qt.QtGui import QIcon
19+
1420
import os
1521
import getpass
1622
import re
@@ -186,8 +192,8 @@ def __init__(self, parent=None):
186192
self.file_path_cbox = QtGui.QComboBox()
187193
self.file_path_cbox.setEditable(True)
188194
self.file_path_btn = QtGui.QToolButton()
189-
icon = QtGui.QIcon()
190-
icon.addPixmap(self.style().standardPixmap(QtGui.QStyle.SP_DirOpenIcon))
195+
icon = QIcon()
196+
icon.addPixmap(self.style().standardPixmap(QtGui.QStyle.SP_DirOpenIcon, None, None))
191197
self.file_path_btn.setIcon(icon)
192198
separator_label = QtGui.QLabel('Sep:')
193199
separator_label.setFixedWidth(30)
@@ -351,7 +357,7 @@ def replace_and_import(self):
351357

352358

353359
def main():
354-
app = QtGui.qApp
360+
app = QtGui.QApplication
355361
global rrn
356362
try:
357363
rrn.close()

0 commit comments

Comments
 (0)