Favorites action to open a product?

I know how to set up custom actions to load or run individual assets, but is it possible to create an action that will open a product in the smart content tab? I am using the "Easy FilaToon" product extensively and it would be nice to have a single click jump to it.

As a work around I have added actions for the most used assets in the product but it would be nice to just open the product itself.

Comments

  • Richard HaseltineRichard Haseltine Posts: 111,247

    No, but you could add the base folder under Daz Studio Formats (which with sahder products is often more useful than the category-ordered product view anyway).

  • crosswindcrosswind Posts: 10,227

    The easier way: open the product folder in Conent Library by adding Custom Action to the Easy Filatoon main folder. Add it to Favorites menu item. It can bring you to the product in Content Library.

    If you DO need to get the product in Smart Content, use the below code in Script IDE, save the script to your Script folder. Then add Custom Action with the script to your Favorites menu.

    (function(){
        var tab = MainWindow.getPaneMgr()
            .findPane("DzSmartContentPane")
            .getProductContentTab();

        MainWindow.getActionMgr()
            .findAction("DzSmartContentProductsSubPaneAction")
            .trigger();

        tab.setCurrentFilter("\"name::Easy Filatoon");

        var product = App.getAssetMgr().findProductByGuid(
            "ee8b963c-3425-42c1-8c88-7a0c5e6880a4"
        );

        if (product)
            tab.exploreProduct(product);
    })();

Sign In or Register to comment.