Untitled
unknown
plain_text
2 years ago
1.2 kB
2
Indexable
Never
nuke.pluginAddPath("Scripts") nuke.pluginAddPath("Gizmos") nuke.pluginAddPath("Nukepedia") nuke.pluginAddPath("NukePedia/pixelfudger") nuke.pluginAddPath("NukePedia/toolsTK") nuke.pluginAddPath("MPC") nuke.pluginAddPath("plugins") nuke.pluginAddPath('./hagbarth') nuke.pluginAddPath('./hagbarth/icons') nuke.pluginAddPath('./hagbarth/tools') nuke.pluginAddPath('./hagbarth/grapichs') nuke.pluginAddPath('./hagbarth/python') nuke.pluginAddPath('./VirtualLens') #nuke.ViewerProcess.register("Log", nuke.createNode, ("Log2Lin", "operation lin2log black 0.0001")) def getKnobType(knob): Class = knob.Class() preReturn = '' #get true knob type of array knob if Class == 'Array_Knob': knobKey = nuke.knob(knob.fullyQualifiedName(), type = True) knobDict = dict([(v,k) for (k,v) in nuke.KnobType.__dict__.items()]) preReturn = knobDict[knobKey][1:-4] + '_Knob' #get Class if the knob is not an array knob else: preReturn = Class #exeptions for node creation if preReturn == 'Float_Knob': return 'Double_Knob' elif preReturn == 'SimpleArray_Knob': return 'WH_Knob' elif preReturn == 'Bool_Knob': return 'Boolean_Knob' else: return preReturn