4 Replies Latest reply on Nov 28, 2016 10:19 PM by poortip87

    The hide selection API hides everything on the document

    poortip87 Level 1

      Hi All,

       

      Why doesn't this work?

       

      I have a selection on the document.

       

      result = sAIActionManager->PlayActionEvent("adobe_hideSelection", kDialogOff, NULL);
      

       

      It hides every item on the document, instead of the current selection.

       

      I have tried this as well,

       

      AICommandID toggleVisiblity;
      error = sAICommandManager->GetCommandIDFromName(kHideCommandStr, &toggleVisiblity);
      error = sAIMenu->InvokeMenuAction(toggleVisiblity);
      

       

      Same result.

       

      Is this API broken, or am I missing something?

       

      I am using AI CC 2015.3