Skip navigation
Currently Being Moderated

Hybrid extension early loading?

Mar 8, 2012 10:52 AM

I have built a hybrid extension which uses a CS SDK Extension as the UI and an Illustrator SDK Plug-in to do the heavy lifting.

I need to get the Extension loaded right away when the Plug-in starts up.  I need the extension to load when Illustrator starts and before the user begins clicking around.

Has anyone created a hybrid extension that opperates in this way?

  • Currently Being Moderated
    Mar 8, 2012 11:03 AM   in reply to TheDollarBill



    If you need ActionScript code run right away, you'll need to set the extension to start on applicationActivate (or something like it).


    That means you'll probably need two extensions -- the visible one, and another invisible one...



    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 11:25 AM   in reply to TheDollarBill

    Instead of having the C++ call the extension, can you have it work the other way around?



    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 11:32 AM   in reply to TheDollarBill

    Ah, this is a known issue. For CS5 the workaround I used was to start an AI Timer in my plug-in's startup code which went off after '1 tick' (AI SDK terminology, IIRC). After 1 tick, PlugPlug has started up and is available to use.


    In the next version of AI SDK I believe there will be a 'PlugPlug set up' notifier which removes the need for the timer workaround.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points