AWS Thinkbox Discussion Forums

sticky settings override not working

Hey Guys,

im trying to NOT have the nuke submission box read certain sticky settings (username,version,entity) as I am trying to push them uin the mask. but even though i did comment out the below in theSubmitNukeToDeadline.py file it still doesnt work.

example below: trying to grab the version number of a render from its write Node filname in nuke and push this version into the version field of draft automatically by calling the function>

#grabbing version number of comp
def getVersion():
filename = nuke.selectedNode().knob(‘file’).value()
splitV =filename.split("_v")
VersionV = splitV[1][:-9]
return VersionV

using it here:
(line 388) self.draftVersion = nuke.String_Knob( “draftVersion”, “Version” )
self.addKnob( self.draftVersion )
self.draftVersion.setEnabled( False )
self.draftVersion.setTooltip( “The version name used by the Draft template.” )
self.draftVersion.setValue(getVersion())

i disabled the below as I thought its overwriting my version:

(line 1392) # if config.has_option( “Sticky”, “DraftVersion” ):
# DeadlineGlobals.initDraftVersion = config.get( “Sticky”, “DraftVersion” )

(line 1585) #if “DraftVersion” in root.knobs():
# DeadlineGlobals.initDraftVersion = ( root.knob( “DraftVersion” ) ).value()

what am I doing wrong? Im a hacker not a full programmer :wink:

Andreas Jablonka
Compositing Supervisor
Fuhu Inc.

We’ve answered this on the ticket, and will post any final conclusions found.

Privacy | Site terms | Cookie preferences