Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dd homework #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

dd homework #3

wants to merge 1 commit into from

Conversation

shankshannon
Copy link

first Nuke Python script

Copy link

@sol87 sol87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我没有测试它的运行情况,但纯从代码质量上看非常棒,很工整。

Good job!

#创建gizimao
#创建一个group
#在group中创建3个text,设置text内容
#连接group的输入输出
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些注释如果可以插入到代码里面,而不是集中地放在这里会更加友好。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同意,注释不应该集中放在这里。

w['create_directories'].setValue('True')
nuke.execute('Write1',100,400,1)


Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多了一个空行

#创建一个group
#在group中创建3个text,设置text内容
#连接group的输入输出
g = nuke.createNode('Group')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

单字母的变量名不可取,尤其是这种全局的写法。我觉得你可以尝试把这个代码写成几个函数。

@sol87
Copy link

sol87 commented Dec 19, 2018

I just approved your work, please feel free to edit your code or merge the pull request directly.

w['meta_codec'].setValue('mp4v')
w['file'].setValue('D:/TDclass/pipeline/aaa/aaa.mov')
w['create_directories'].setValue('True')
nuke.execute('Write1',100,400,1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

忘记把Write节点连到Gizmo上了

w['create_directories'].setValue('True')
nuke.execute('Write1',100,400,1)


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议是用cmd参数(即sys.argv)读入原素材路径和mov目标路径,而不是写死在代码里,我们需要的是一个加水印转码工具,而不是一个一次性的脚本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants