The problem with AI and plug-in

New Here ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

Hi everyone!

The function I want to achieve: when the plug-in is opened from the [window] of the ai interface, the data is obtained from the ai canvas and displayed in the plug-in UI.

At present, when the plug-in is opened from the [window] of the ai interface, the event that the plug-in fails to load the canvas is not triggered, and the plug-in fails to receive SPMessageData.

But when the plug-in is opened from [file], the event of loading the canvas is triggered, and the plug-in receives SPMessageData.                                                                                                                                                    

I want to know what to do so that when [window] opens the plug-in, the same code processing is triggered as when the plug-in is opened from [file].

When opening the plug-in from [Window] according to the click order in the figure below, the content of art in the ai canvas cannot be loaded in the plug-in window, and the callback function that calls the registration of the plug-in is not found when it is opened by this method.

9CA6DB1E-D727-4EED-9BD2-A12CAD47A7D0.jpeg

64D944E6-D310-47D2-B5C5-5E418FE728AA.png

 

When the plug-in is opened from the [file] menu button according to the click sequence in the figure below, the content of the canvas is displayed in the plug-in, and the registered callback function of the plug-in will be called at this time.

B6DA53D7-C8B6-46E3-81A7-1EA4C9A8F08C.png

C6126017-2319-40EF-B03E-37D5A9727B8F.png

TOPICS
Performance, SDK, Third party plugins, Tools

Views

90

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation