2016-12-17 3 views
1

텍스트 노드의 텍스트 전체 message에 눈금을 강제 적용 할 수 있습니까? Nuke 9.0v7 또는 10에 대한 방법이 있음을 알고 있지만이 방법은 사용할 수 없습니다.Nuke 9의 파이썬

나는 로터리 방식으로 글꼴을 보강하려고 시도했지만, 여전히 이것을 파악할 수는 없습니다.

nuke.toNode("shot_" + str(c+1) + "_text")['message'].setValue("") 
nuke.toNode("shot_" + str(c+1) + "_text")['font_size'].setValue(33) 
nuke.toNode("shot_" + str(c+1) + "_text") ['baseline_shift'].setValue(-13) 
nuke.toNode("shot_" + str(c+1) + "_text")['message'].setValue((ntpath.basename(thumbnailShots[c+ contactSheetUp])[:-4])[:17]) 

블로그의 댓글과 매우 유사합니다. 글꼴은 네이티브 100 글꼴 크기 및 글꼴 크기 33로 표시됩니다.

http://community.thefoundry.co.uk/discussion/topic.aspx?f=190&t=113652

답변

0

그것은 확실히 NUKE 10.5에서 작동합니다.

nuke.toNode('myNode')['global_font_scale'].setValue(5) 
: 당신은 당신이이 방법을 사용해야합니다 global_font_scale 값을 변경하려면

p = nuke.nodes.Text2(name="myNode") 
p['box'].setValue([0,0,2000,1500]) 
p['xjustify'].setValue("center") 
p['yjustify'].setValue("center") 
p['message'].setValue("NUKE [version]") 
p['font_size'].setValue(175) 
nuke.connectViewer(0, p) 

:이 구문을 사용하여 font_size 값을 변경