Is it possible with the SDK?

Is it possible to use the Illustrator's tools while making an extension/plug-in? What I mean is: Can I "take" the Illustrator Scissors to cut a path at some point/anchor? Can I "ask" Simplify tool to simplify some path with some parameters? Can I use Pathfinder to crop some object? etc.
I look at the SDK/Scripting manual and I see no way to use the tools. I see objects and their properties. It is possible to do only basic operations like "move, reflect, change color". How about using the tools?!
In my imagination the scripting/plug-in development should be similar to Actions creation, but more advanced. Like:
1. Create a rectangle.
2. Apply "round corners" effect.
3. Crop with another rectangle.
4. Duplicate.
5. Move.
6. Unite.
7. Apply ZigZag effect.
8. Simplify, 80%, ...
And I am surprised to see that SDK does not have/show the way to use the standard/built-in tools.
Please point me in the right direction. How to use the tools? Any sample source code?

The ActionManagerSuite contains lots of useful stuff you may be able to use. Look through the header files in Adobe Illustrator CS6 SDK / illustratorapi / illustrator / actions /
Particularly "AIObjectAction.h"
A properly set up AIActionParamValueRef will allow you to use a lot of Illustrator core functionality that may not be available through the other Suites. The name of the action you want can be found in the action palette by creating an action and adding the function you want to use.
It's been a while since I used this, but I think I got the enumerated value by watching the returned integer "value" in:
ASErr ASAPI(* AIActionManagerSuite::AIActionGetEnumerated)(AIActionParamValueRef param, ActionParamKeyID key, char *name, ai::int32 *value) while stepping through in the debugger.
This did a merge of selected art, I think. It may help get you started.
AIActionParamValueRef
crop_VPB = NULL;
char
crop_name[] = "Crop";
AIErr
result = kNoErr;
result = sAIActionManager->AINewActionParamValue(&crop_VPB);
result = sAIActionManager->AIActionSetEnumerated (crop_VPB, 'name', crop_name, 9);
result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'objt', true);
result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'fill', true);
result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'strk', true);
result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'smth', true);
result = sAIActionManager->AIActionSetInteger(crop_VPB, 'step', 256);
result = sAIActionManager->AIActionSetUnitReal(crop_VPB, 'thck', unitPoints, (AIReal).0072);
result = sAIActionManager->AIActionSetUnitReal(crop_VPB, 'prec', unitPoints, (AIReal).0072);
result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'remv', true);
result = sAIActionManager->AIActionSetBoolean(crop_VPB, 'extr', true);
result = sAIActionManager->PlayActionEvent( "ai_plugin_pathfinder", kDialogNone, crop_VPB);
if(crop_VPB != NULL) result = sAIActionManager->AIDeleteActionParamValue(crop_VPB);

Similar Messages

  • I'm not a programmer but want to know if this is possible with the SDK?

    Hello, I'm a photographer, not a programmer but I'm looking for a solution to automate what I do twice a week with Adobe Lightroom...I need a plugin that will do the following:
    1) Take a set of photos and Randomize the Order (i.e. mix them up not A-Z or Z-A or by rating, etc)
    2) Apply certain develop presets that I choose randomly to some of those photos
    3) Export& Upload the photos to a facebook group or fan-page
    I already have a plugin which does task #3 so really having something do 1&2 is all I need but if it's possible to do it all with one plugin then that would obviously be better...
    Can this be done?
    Thanks.

    Hi,
    Off the top of my head I can't think of an SDK provided mechanism to modify
    the user sort order (item 1 in your list). I'm pretty sure the rest is
    achievable.
    Thanks, Matt
    (Apologies for the brevity - sent from my Android)

  • Administering with the SDK

    Hi all,
    Do you know if it is possible to program with the SDK a basic webpage for administering users and folders? Any documentation?
    Regards,
    Bea

    Hi Bea,
    Yes you can do those things.
    documentation
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    goto
    BusinessObjects Enterprise SDK
       Java developer guide (if java)
           Tutorials    
               Client and Admin Desktop Tutorials
                   - How to manage user accounts
                   - How to manage user groups
                   - How to create a new folder in BusinessObjects Enterprise
             etc.....
    Above link is open of the best documentations.
    Thanks,
    Praveen.

  • In Indesign CS6 I export an artboard to  TIFF with the sdk's funtion SnapshotUtilsEx- ExportImageToTIFF(iStream) and, the resulting file is one pixel too large in the X, leaving a transparent strip on one edge. Any idea if there is a bug in the sdk?

    In Indesign CS6 I export an artboard to  TIFF with the sdk's funtion SnapshotUtilsEx->ExportImageToTIFF(iStream) and, the resulting file is one pixel too large in the X, leaving a transparent strip on one edge. Any idea if there is a bug in the sdk?

    An easy example to prove this bug of Indesing CS6:  I create a psd with Photoshop CS6, with width 505 pixels, height 317 pixels and a resolution of 300 pixels per inch. This psd is placed on a page in InDesign CS6. Then I try to export it as a tiff with the functions:
    fSnapshotUtilsEx->Draw(flags,fullResolutionGraphics,greekBelowPtSize,enableAntiAliasing,tr ansparencyQuality,abortCheck,pVPAttrMap,bDrawNonPrintingObjects);
    and
    SnapshotUtilsEx-> ExportImageToTIFF (iStream)
    The resulting tiff has a width of 506 pixels (one pixel more in width). It will happen the same if we start with a width of 507 pixels, etc.
    This error does not occur with Indesign CS5, nor Indesing CC.

  • I want the Genius recommendation column back.  Is this possible with the latest iTunes?  If not, this was a poor decision to remove it :/

    I want the Genius recommendation column back.  Is this possible with the latest iTunes?  If not, this was a poor decision to remove it :/

    Hi,
    Genius recommendations are available in the itunes Store.
    Jim

  • The demand of my application is that i can not replace for loop with a while loop.because i need fixed number of iterations and as far as i know fixed iterations could be only with possible with the for loop.

    the demand of my application is that i can not replace for loop with a while loop.because i need fixed number of iterations and as far as i know fixed iterations could be only with possible with the for loop.
    your recommended second option that i could add true/false case.
    this true/false case must be inside the for loop or outside the for loop?if this case is inside the for
    loop, how can i send stop command from outer while
    loop?
    more over do you have any example for this please?
    thanks"

    You can execute a fixed number of iterations using a while loop by comparing the iteration count to the number of iterations you want and wiring the output of that comparison (e.g. Less Than or Equal To) to the continue (or stop) terminal of your while loop. Which comparison you use depends on personal preference, where you wire the desired count and the interation count, and whether you're using the while loop as Continue if True or Stop if True.
    Ben gave you step-by-step instructions in response to your previous question. Look here for Ben's response.
    Ben's response looks pretty good and detailed to me. It certa
    inly deserved better than a 1-star rating.

  • Is the new maverick download not possible with the version lion?

    Is the new maverick download not possible with the version lion?
    My version is:
    Mac OS X Lion 10.7.5

    Should be, you can compatibility here:
    http://support.apple.com/kb/HT5842

  • Before downloading the latest version of I-Tunes, I used to be able to view the ALBUM ARTWORK at bottom left when clicking on a song.   I am now unable to see the artwork.   Is it no longer possible with the updated software ??

    before downloading the latest version of I-Tunes, I used to be able to view the ALBUM ARTWORK at bottom left when clicking on a song.
    I am now unable to see the artwork.
    Is it no longer possible with the updated software ??

    Correct, Apple have removed that feature. However, you can still see the artwork of the song that's playing; it's shown in the Now Playing indicator at the top of the iTunes window. It is small, but if you click on it, a larger version pops up.
    Also, in Albums View, you can see the album artwork.

  • Is USB Tethering possible with the iPad.

    Since wireless Tethering isn't secure, I was considering USB Tethering which is. However, is that possible with the iPad?

    Hi
    You can share your tablets mobile data connection with other devices via USB, Bluetooth or by turning your table into portable Wifi hotspot.
    Note; this function is only supported by 3G models.
    In option Wireless & Networks you can configure and manage this setting
    You can tap More to find out the hidden options.
    The option Tethering & portable hotspot settings would provide the possibility (USB tehthering) to share the data connection.

  • To anyone with the SDK and the skills required

    Now that we have the App Store, how long until someone makes an "Adblock" for iPod Safari, or even a version of Firefox (with extension computability) for iPod Touch?

    how long until someone makes an "Adblock" for iPod Safari
    Never. Because you can't make Safari Plugins with the SDK
    or even a version of Firefox (with extension computability)
    Why? Safari is a better browser, and Firefox would become unstable, bloated and a memory-hog with extensions.

  • Can you do that with the SDK?

    I have a question concerning the SDK. In a project, we want to automate some Editing-Functions and the "Premiere_SDK_Guide.pdf" leaves some questions:
    1) Is it possible to write a plugin, that read pathes from ressources (for example Images and Audio from an XML-file) and put these at specific places on the timeline?
    2) With video- and audio-transitions?
    Even if the above is not possible, than can you automatically:
    3) Set Chapter-Markers?
    4) Export to Encore or directly as a DVD?
    Thanks in advance,
    Hans

    Hi Hans,
    1) For this I would recommend you generate an FCP XML, which can be imported into Premiere Pro.  The SDK doesn't provide control over project items.
    2) You can see supported transitions and effects here: http://help.adobe.com/en_US/premierepro/cs/using/WSd9957a95a81082eb28f05af5126718c47be-800 0.html#WSd9957a95a81082eb28f05af5126718c47be-7ffd
    3) Markers in the FCP XML can't currently be imported directly as Encore Chapter markers, but once the markers are brought in, it is fairly simply to switch them from regular markers to Encore Chapter markers.  Bringing them in directly as Encore Chapter markers could be a good feature request, if you decide to use the FCP XML route - http://www.adobe.com/go/wish
    4) Triggering an Export to Encore is not something a plug-in or external application can do.  But by generating the FCP XML in advance, that should save a ton of time with the editing up front.
    Regards,
    Zac

  • Can I generate pdf document that has Acrojs functionality with the sdk?

    Hi, I was wondering if I can create a pdf document with Acrojs functionality in it from the sdk. I'm looking to see if I can create an application in C# that generates a pdf document with a form scripted with Acrojs. Is this possible? Thank you guys for your attention.

    >Until now, I could see the TOC on my PDF.
    Nothing has changed.
    Remember, iBA is not a PDF authoring tool.

  • Is 'feed per rev' axis to spindle interpolation possible with the 7344?

    Just evaluating the NI-7344 motion controller for a machine tool application. Whilst axis to axis interpolation functions are well described, it is unclear if it would be possible to synchronize an axis with a continuously rotating spindle. My application would have a rotary spindle drive (under closed loop control) continuously running at around 3000rpm, with TTL encoder feedback. There would then be a single linear axis programmed to move at say, 0.2mm per rev of this spindle, to create a fine 'spiral' on the part. A change of spindle speed would not affect the pich of the spiral. Searches brought up helical interpolation but I think this would not work with a continuously running rotary axis. Any advice welcome. Thanks,                                             Chris.  

    Hi Chris,
    Could I clarify, would you want the spindle drive driven by the card as well or is this externally driven?  What is your other motor e.g. servo or stepper?  How do you plan to drive this?
    I forsee two scenarios on here:
    1) If they are both from the same card then effectively what you want is a 2 axis linear move e.g. axis 1 = k*axis 2 and we should be able to do this with the 7344.
    2) If the spindle is driven elsewhere and we are driving a stepper motor we could use a counter card to generate x number of pulses to control the stepper per pulses seen from the encoder.  This would be a less intelligent motion system but I believe should work.
    3) If the spindle is driven elsewhere and we are driving a servo then this will be trickier.  Depending on the drive you have we would have to look at what signals we need to produce for this.
    Regards,
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

  • Can this be done with the SDK ??

    Hey
    im looking some advice. im looking to develop an application that does the following.
    1. Take an image file any format (jpeg/bitmap/gif....etc)
    2. Convert the image to 7x10 dpi
    3. Change the dimensions of the image to restore aspect ratio
    4. Pass the image to illustrator to vectorise the image and change the resolution of it to a custom size.
    5. Save the resulting image as any format (jpeg/bitmap/gif.... etc)
    I have pretty much covered steps 1,2,3 myself.
    I would like to know can steps 4&5 be done easily, ie does illustrator allow east integration with custom applications ?
    Could anyone provide a brief logic on how this would be done. i have not yet subscribed for the sdk, but will do if it can be done.
    Can anyone think of an alternative solution ??
    Thanks alot
    R

    >Can anyone think of an alternative solution ??
    You can accomplish this with the scripting capabilities.

  • Is beta 2.0 intergrated with the SDK?

    Here is my question: if I pay $99 to become a registered developer, will I also get the beta version of the 2.0 firmware with all the enterprise features that Apple talked about, or will I only get the SDK?

    http://developer.apple.com/iphone/program/
    looks like it!!
    you get to test your apps through your own iphone which you cannot do my simply downloading the sdk.
    so i would say yes to your question

Maybe you are looking for