Author Topic: concatenating Qube GUI values  (Read 2551 times)

bijuramavfx

  • Sr. Member
  • ****
  • Posts: 40
concatenating Qube GUI values
« on: August 13, 2012, 05:54:59 PM »
Hi there:

How can create a commandline by taking users value chosen from Qube GUI ..? For example

    cmdjob.command = ('"%(executable)s" -t -x %(argv)s -- "%(script)s" %(scriptArgs)s QB_FRAME_START,QB_FRAME_END,QB_FRAME_STEP')

    cmdjob.add_optionGroup('Primary parameters')
    cmdjob.add_option('rezpackages', 'string', mode = 'open', default = 'nuke nbnuke python-2.5.4',
                      choices = ['nuke nbnuke python-2.5.4'])
    cmdjob.add_option( 'executable', 'file' , 'explicit path to Nuke executable', mode='open', default = 'Nuke6.3',
                      choices=['Nuke6.3',
                               'C:/Program Files/Nuke6.3v8/Nuke6.3.exe',
                               '/Applications/Nuke6.3v8/Nuke6.3v8.app/Contents/MacOS/Nuke6.3',
                               '/usr/local/Nuke6.3v8/Nuke6.3',
                               ])

commandLine = executables + rezpackages


Thanks much appreciated

/Biju

bijuramavfx

  • Sr. Member
  • ****
  • Posts: 40
Re: concatenating Qube GUI values
« Reply #1 on: August 13, 2012, 06:27:22 PM »
here it is - cmdjob.command = ('rez-run "%(rezpackage)s" -- "%(executable)s" -t -x %(argv)s "%(script)s" %(scriptArgs)s QB_FRAME_START,QB_FRAME_END,QB_FRAME_STEP')

Thanks
/Biju