Maya Shelf Qube! submit button:
     
    This tech tip takes you through the steps to create a Qube! Submit button in your “Render” shelf in Maya
      
     

    1. Select the “render” shelf
      1. Right Click and select “Shelf Editor...”
    2. Create a new button
      1. Rename the button Qube!
      2. Move the button down to where suitable
      3. Select Command in the tabs and enter below
        1. OS X:
          system(""+`qube_get_qubeguiPath`+"/Contents/MacOS/qube --submitDict \"{'name':'maya render "+`file -q -sn -shn`+"', 'prototype':'maya', 'package':{'scenefile':'"+`file -q -sn`+"', 'project':'"+`workspace -q -rd`+"', 'range':'"+`getAttr defaultRenderGlobals.startFrame`+"-"+`getAttr defaultRenderGlobals.endFrame`+"', 'cameras_all':'"+stringArrayToString(`listCameras -p -o`, " ")+"', 'renderers_all':'"+stringArrayToString(`renderer -q -ava`, " ")+"', 'layers_all':'"+stringArrayToString(`ls -type renderLayer`, " ")+"'}}\" >/dev/null 2>&1 &");
        2. Windows and Linux:
          system(""+`qube_get_qubeguiPath`+" --submitDict \"{'name':'maya render "+`file -q -sn -shn`+"', 'prototype':'maya', 'package':{'scenefile':'"+`file -q -sn`+"', 'project':'"+`workspace -q -rd`+"', 'range':'"+`getAttr defaultRenderGlobals.startFrame`+"-"+`getAttr defaultRenderGlobals.endFrame`+"', 'cameras_all':'"+stringArrayToString(`listCameras -p -o`, " ")+"', 'renderers_all':'"+stringArrayToString(`renderer -q -ava`, " ")+"', 'layers_all':'"+stringArrayToString(`ls -type renderLayer`, " ")+"'}}\" >/dev/null 2>&1 &"); 
    3. Select icon location
      1. Windows:
        c:\program files\pfx\qube\api\python\qb\gui\AppUI\Cinema4D\Qube_Submit\Qube_Submit_WIN.tif
      2. OS X:
        /Applications/pfx/qube/api/python/qb/gui/AppUI/Cinema4D/Qube_Submit/Qube_Submit_WIN.tif
      3. Linux:
        /usr/local/pfx/qube/api/python/qb/gui/AppUI/Cinema4D/Qube_Submit/Qube_Submit_WIN.tif
    4. You will see a Qube! button now in your render shelf
    • No labels