Script/SDK to Perform a Button Action
DadofMany
Posts: 13
I apologize if this has already been addressed.
Is there a way to call a pane button action via script/SDK?
Specifically I would press Render Pane, Advanced tab, Nvidia Iray Engine Bridge (Bets)] Tab, Add to Queue [...] Button via script/SDK.
I cannot find the action corresponding with this button. Should I try to capture an action or ID or is there an easier method?
Any assistance is greatly appreciated.
Comments
You can't directly access the renderer, since it's supplied to daz as a black box, just the settings (I assume you've seen Rob's sample scripts in that area http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/start#rendering ). You may be able to access the pane controls via script, using code like https://www.daz3d.com/forums/discussion/comment/557942/#Comment_557942 to find out what is available.
Richard,
Thank you very much for the response and information.
Though I see there is a bit of work involved, you have given me a good starting point for my project.
I have made limited progress before getting stuck again....
Using the discovery script example I was able to find the setCurrentTab(int) function , I am able to select the Render Settings Pane and select the Advanced Tab with the code below. I'm trying to find a way to proceed from here.
I have tried to "discover" the following functions but they don't appear to be the correct functions to allow me to proceed:
getContentTab()
getDefaultSkin()
getEditorGuidePage()
getElementEditor()
getOptionsMenu()
getOptionsMenuVersion()
getOverrideSkin()
getPaneGroup()
getPresetGuidePage()
From this point I would like to be able to select the Nvidia Iray Engine Bridge (Beta)] Tab, Add to Queue [...] Button via script/SDK.
Any assistance is greatly appreciated.