- 博客(5)
- 收藏
- 关注
转载 Nuke中新建线程的方法
写完后在menu.py中通过os.system(path)方法即可打开document。但问题出现了。这个说明文档用word打开后会占用Nuke主线程,导致Nuke陷入假死状态。只有关闭word才可以解除Nuke假死。也就是说,实际上,word与Nuke是共用同一个线程,显然这是不可接受的。于是写了一个脚本,为新打开的word程序新开一个线程。代码块如下:import thread...
2020-03-17 10:26:16
263
原创 Python setting Reformat or Project Settings Format
theFormat = nuke.addFormat("101 101 1")nuke.root()['format'].setValue(theFormat)
2020-03-11 10:15:11
222
转载 nuke导入序列的方式
path = r"E:/images/" #文件夹路径for fin nuke.getFileNameList(path): readNode = nuke.createNode('Read') readNode['file'].fromUserText(path +f)
2020-03-10 13:47:40
3296
原创 获得当前目录 上级目录
currentDir = os.path.dirname(__file__)parentDir = os.path.abspath(os.path.dirname(os.getcwd()))os.chdir(nuke_path)类似windows的cd到nuke_path路径下
2019-11-28 09:25:43
321
原创 记录下用于保存路径的脚本
最近有同事要在操作系统里保存各种自定义或者非自定义的路径,我就写了个比较简单的脚本,简单记录下主窗口代码如下:# -*- coding: utf-8 -*-import jsonimport platformimport randomimport impfrom collections import OrderedDictimport osimport sysimp...
2018-08-03 22:55:08
273
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅