Actions wont trigger. No errors

clandescent1clandescent1 Posts: 22

Using this http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/actions/action_trigger/start

these actions wont trigger, there is no error and code appears to be ok. Note that other actions like selecting figures or objects work, i cant imagine a reason why these two would not work.

triggerAction( "DzFacetSelClearAction" ); this is for "Clear Selection"

triggerAction( "DzHPCloseAllAction" ); this is for "Collapse All"

Anyone have any idea how to make it work?

Post edited by clandescent1 on

Comments

  • OmnifluxOmniflux Posts: 363

    I'm not sure what you've changed in that script so cannot offer insight into why what you are doing is not working, however I just tested and there is no issue with these actions in 4.21.0.5.

     

    MainWindow.getActionMgr().findAction('DzHPCloseAllAction').trigger();

     This collapses all expanded nodes in the Scene panel.

    MainWindow.getActionMgr().findAction('DzFacetSelClearAction').trigger();

    This deselects all selected polygons in the Geometry Editor tool.

Sign In or Register to comment.