1. i create simple nuke script like in my attachment , there are 3 nodes: merge, checkerboard(connect to merge input A) and reformat(connect to merge input B). i put this script on the merge.label :
size: [python nuke.thisNode().width()] x [python nuke.thisNode().height()]
but when updating the "reformat" node to change its size, the label of merge won’t update. i tried TCL also but got no luck. What’s wrong? I tested using other function like frame() etc which is works well, only this width/height things which raise the problem. The goal is to display the ‘merge’ current size, any other better way to do it?
2. How to create custom side toolbar on viewerwindow, the one like in rotopaint node. I couldn’t find a way to do it using nuke.menu(). is it possible using simple python ? or i have to go hardcore SDK scripting?
3. How to access panel’s of a knob? i create panel using PythonPanel class. There are couple of knobs i created on these panel and i want to be able to access it. Problem is : if i create it in nuke’s script editor , for example:
m=mypanel() … i can then use the variable ‘m’ to access the knob by using: m.myknob.value(). But what if i’m loosing the reference to the variable? Let say i created this panel using menu.py or toolbar or menu… then i got no variable to refer to coz i think the var will be only locally available only inside the definition(def). How can i access it, is using global variable the only way? or is there any other fancy way?
4. How to access the viewer parameter like : zoom factor etc using python. Some parameter are available through the knob (i can use nuke.toNode() ), but some are not. i want to be able : let say detecting the zoom and pan by user dragging on viewer. The idea is i want to reverse the transforming of any zoom/pan… this is just an experimental trick to make the screen stays still while user trying to pan/zoom. is it possible? any clue ?
That’s it for today 🙂
thanx,
Post a Comment