def onStartup(**kwargs): # Add menu options FarmAPI.AddFarmMenuOption(_GenerateXMLForSelectedNodeLabel, _InitDialogSelected) FarmAPI.AddFarmMenuOption(_GenerateXMLForAllNodesLabel, _InitDialogAll) # Add popup menu options FarmAPI.AddFarmPopupMenuOption(_GenerateXMLForCurrentNodeLabel, _InitDialogCurrent) FarmAPI.AddFarmPopupMenuOption(_GenerateXMLForSelectedNodeLabel, _InitDialogSelected) FarmAPI.AddFarmPopupMenuOption(_GenerateXMLForAllNodesLabel, _InitDialogAll) # Add custom farm settings FarmAPI.AddFarmSettingNumber("threadable", 1, hints={ 'widget': 'checkBox', 'constant': 'True' }) FarmAPI.AddFarmSettingString("farmFileName")
def onStartup(**kwargs): # add Menu Option # FarmAPI.AddFarmMenuOption('rrSubmitter', initAssExport) FarmAPI.AddFarmPopupMenuOption('rrSubmitter (local)', localExport) FarmAPI.AddFarmPopupMenuOption('rrSubmitter (farm)', farmExport) FarmAPI.AddFarmSettingString('fileName') FarmAPI.AddFarmSettingString('outputFolder', hints={ 'widget': 'assetIdInput', 'dirsOnly': 'true', 'acceptDir': 'true' }) # .setHintString("{'widget':'assetIdInput', 'dirsOnly':'true', 'acceptDir':'true'}") FarmAPI.AddFarmSettingNumber('stepSize', 1) FarmAPI.AddFarmSettingNumber('useThreads', 2) FarmAPI.AddFarmSettingNumber('packageSize', 10) FarmAPI.AddFarmSettingNumber('useRendermanDenoiserPostScript', hints={'widget': 'checkBox'}) FarmAPI.AddFarmSettingNumber('useYetiLic', hints={'widget': 'checkBox'}) FarmAPI.AddFarmSettingNumber('useComment', hints={'widget': 'checkBox'}) FarmAPI.AddFarmSettingString('comment') # Denoise FarmAPI.AddFarmSettingNumber('useRendermanDenoiserPostScript', hints={'widget': 'checkBox'}) FarmAPI.AddFarmSettingString('denoiseFilter', hints={ 'widget': 'popup', 'options': [ 'default.filter.json', 'sigmaAlphaOnly.filter.json', 'volume.filter.json', ] }) FarmAPI.AddFarmSettingNumber('useFilterOverride', hints={'widget': 'checkBox'}) FarmAPI.AddFarmSettingStringArray( 'denoiseFilterOverride', hints={ 'widget': 'dynamicArray', 'isDynamicArray': 'true', #'panelWidget': 'popup', # 'options': 'filterLayersIndependently.filteroverride.json|fireflyKiller.filteroverride.json|linearWarp.filteroverride.json|nearestWarp.filteroverride.json|noAlbedoDivide.filteroverride.json|noDepth.filteroverride.json|noFireflyKiller.filteroverride.json|nonsplitVariances.filteroverride.json|noUnpremultiplyColor.filteroverride.json|splitVariances.filteroverride.json|unpremultiplyColor.filteroverride.json|unpremultiplyFeatures.filteroverride.json', # 'options': [ # 'filterLayersIndependently.filteroverride.json', # 'fireflyKiller.filteroverride.json', # 'linearWarp.filteroverride.json', # 'nearestWarp.filteroverride.json', # 'noAlbedoDivide.filteroverride.json', # 'noDepth.filteroverride.json', # 'noFireflyKiller.filteroverride.json', # 'nonsplitVariances.filteroverride.json', # 'noUnpremultiply:wColor.filteroverride.json', # 'splitVariances.filteroverride.json', # 'unpremultiplyColor.filteroverride.json', # 'unpremultiplyFeatures.filteroverride.json' # ] })