Reset clipping Path after replacing image?

Hello
I have some code that works in CS3 but not in CS4. I need to reset the clipping path used after replacing an image in CS4. I use the method below to do this.
If I go to "Object->Clipping path Options " after I have updated the image, the settings look ok, but the whole image is show and not the selected path. If I change something in the dialog, like Inset frame , the the correct path is applied. Do I need to redraw the image somehow after I have processed the kSetClipValuesCmdBoss command?
Best regards
/ Pontus
ErrorCode     PnlTrvUtils::ResetClipping(IPlaceBehavior *srcRoot, IClipSettings *iOldClipSettings, IDocument *doc, UID newItem) {
    ErrorCode err = -1;
    do {
        uint32 alphaCount = 0;
        uint32 clipCount = 0;
        bool8 bCopyOldClip = kTrue;
        bool8 bUpdateClip = kFalse;
        IClipSettings::ClipType clipType = IClipSettings::kClipNone;
        if (! iOldClipSettings) {
            // CAlert::ErrorAlert("no old clip");
            break;
        if (iOldClipSettings)
            clipType = iOldClipSettings->GetClipType();
        if ( clipType != IClipSettings::kClipNone )
            int16 pathOrAlphaIndex = IClipSettings::kDefaultClipIndex;
            InterfacePtr<ICommand> settingsCmd(CmdUtils::CreateCommand(kSetClipValuesCmdBoss));
            InterfacePtr<ISetClipValuesCmdData> clipSettingsData(settingsCmd, IID_ISETCLIPVALUESCMDDATA);
            if (clipSettingsData)
                // CAlert::ErrorAlert("clipSettingsData");
                // Decide which cliptype to use and make sure the old settings
                // for the cliptype are still valid for the new image.
                switch (clipType)
                    case IClipSettings::kClipEmbeddedPath:
                        // CAlert::ErrorAlert("embeddedpath");
                        pathOrAlphaIndex = iOldClipSettings->GetEmbeddedPathIndex();
                        PMString num("");
                        num.AppendNumber(pathOrAlphaIndex);
                        CAlert::ErrorAlert(num);
                        // Make sure new image has a clipping path
                        InterfacePtr<IImageIOPreferences> newImageIOPrefs( srcRoot, UseDefaultIID() );
                        if (! newImageIOPrefs || newImageIOPrefs->GetCreateClippingFrame())
                            clipCount = GetClipCount(srcRoot);
                        if (!Utils<IScriptUtils>()->IsINX())
                            bCopyOldClip = kFalse;
                            bUpdateClip = kTrue;
                        if ( ! clipCount ) {
                            pathOrAlphaIndex = IClipSettings::kDefaultClipIndex;
                            clipType = IClipSettings::kClipNone;
                            bUpdateClip = kFalse;
                        else if ( clipCount <= pathOrAlphaIndex ) {
                            pathOrAlphaIndex = IClipSettings::kDefaultClipIndex;
                            // Update the clipping
                        break;
                    case IClipSettings::kClipAlpha:
                        pathOrAlphaIndex = iOldClipSettings->GetAlphaIndex();
                        // If the old setting is Alpha, make sure the new graphic supports the alpha settings.
                        alphaCount = GetAlphaCount(srcRoot);
                        if ( ! alphaCount ) {
                            pathOrAlphaIndex = IClipSettings::kDefaultClipIndex;
                            clipType = IClipSettings::kClipUserPath;
                        else if ( alphaCount <= pathOrAlphaIndex ) {
                            pathOrAlphaIndex = 0;
                        break;
                PMString num("");
                num.AppendNumber(pathOrAlphaIndex);
                CAlert::ErrorAlert(num);
                // hkhalfal: (NACSR) No abortable command sequence is used
                // errors occurring in this scope will not revert the changes
                GlobalErrorStatePreserver errorStatePreserve;
                clipSettingsData->SetImageItem(::GetDataBase(doc), newItem);
                clipSettingsData->Set (clipType,
                    pathOrAlphaIndex,
                    iOldClipSettings->GetTolerance(),
                    iOldClipSettings->GetInset() + 1.0,
                    iOldClipSettings->GetThreshold(),
                    iOldClipSettings->GetInvert(),
                    iOldClipSettings->GetUseHighRes(),
                    iOldClipSettings->GetAllowHoles(),
                    iOldClipSettings->GetRestrictToFrame());
                if ( CmdUtils::ProcessCommand(settingsCmd) != kSuccess)
                    // Error Handling goes here.
                    // CAlert::ErrorAlert("err");
                // CAlert::ErrorAlert("cmd ok");
    } while(false);
    return err;

A clipping path is equivalent to a Mask or a Track Matte in After Effects.
To use your Illustrator logo as a track matte, place it's layer above the Fill layer, and then choose the Alpha Matte option from the Matte drop-down list on the Fill layer.
For more information:
http://livedocs.adobe.com/en_US/AfterEffects/8.0/WS3878526689cb91655866c1103906c6dea-7cf8. html

Similar Messages

  • Interior clipping paths in photoshop image dont show up in Quark

    Iv'e added a clipping path to image that has interior paths (inside the main clipping path)
    I save as clipping path and save image as an eps.
    When I import the image into Quark XPress and place over colored background the interior paths are not clipping out (punching out) to see the background color.
    The clipping path shows up in the Quark document but doesn't punch out when I export as a pdf.
    This is also happening when I import the image into InDesign and make a pdf.
    Any thoughts?

    In your tools panel are these icons … . Select your paths with the Path Selection Tool (black arrow) and make sure you have used the correct "path area" option for each individual path.  

  • How do I show a clipping path on an image in Illustrator?

    Hi there
    I am a beginner when it comes to Illustrator and only use it when I have to - like now!
    I was wondering - Is it possible to place an image into an AI file and show its clipping path? (that was created in Photoshop)
    I have tried saving the image as a TIFF, PSD but no luck.
    I have also attached a screen shot - just to show the image that has a path.
    Thanks in advance.

    I have placed the image but the 'Embed' option isn't highlighted so I can't click on this!
    I think I have worked out another way to do this - I have saved the image on a transparent background in photoshop as a psd file and then when I place this in AI, the Photoshop Import options box appears and with this set to 'Convert layers to objects' it somehow
    works! like so............ (probably not the best way to do it?!!)

  • We need a script that will select clipping path for multiple images in indesign

    this is what we have, but it's not working:
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll; 
    app.doScript(resetAllClippingPathsToActiveDoc, ScriptLanguage.JAVASCRIPT, [], UndoModes.ENTIRE_SCRIPT, "Reset all Clipping Paths of the Active Document"); 
    function resetAllClippingPathsToActiveDoc(){ 
        var d=app.activeDocument; 
        var allGraphicsInDoc = d.allGraphics; 
        for(var n=0;n<allGraphicsInDoc.length;n++){ 
            if(allGraphicsInDoc[n].hasOwnProperty("clippingPath")){allGraphicsInDoc[n].clippingPath.c lippingType = ClippingPathType.PHOTOSHOP_PATH};
                allGraphicsInDoc[n].clippingPath.appliedPathName = "Path 1"; 

    this is what we have, but it's not working:
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll; 
    app.doScript(resetAllClippingPathsToActiveDoc, ScriptLanguage.JAVASCRIPT, [], UndoModes.ENTIRE_SCRIPT, "Reset all Clipping Paths of the Active Document"); 
    function resetAllClippingPathsToActiveDoc(){ 
        var d=app.activeDocument; 
        var allGraphicsInDoc = d.allGraphics; 
        for(var n=0;n<allGraphicsInDoc.length;n++){ 
            if(allGraphicsInDoc[n].hasOwnProperty("clippingPath")){allGraphicsInDoc[n].clippingPath.c lippingType = ClippingPathType.PHOTOSHOP_PATH};
                allGraphicsInDoc[n].clippingPath.appliedPathName = "Path 1"; 

  • Embed clipping path without embedding image

    I embed Photoshop images all the time in order to get a vectorized version of the clipping path. Afterwards, I relink the image I just embedded and the new vector becomes the mask. It would be nice if I didn't have to embed the image itself in order to embed the clipping path. Even better, it would be nice to see which images had clipping paths right inside of Illustrator without having to embed them or open Photoshop. Maybe this could be part of the "Link Info"?

    Could you just export the path for the clipping path from Photoshop to Illustrator?
    You know export paths to Illustrator under the file menu in Photoshop? Or just drag the path from Photoshop to the Illustrator document?
    Oh I see what you want you want to link the file with the option to have the clipping mask be a live editable clipping mask in AI and in the same relative position.
    Interesting option, like a check box link file embed clipping mask.

  • Creating groups of paths after tracing image in Illustrator

    I created a raster image in a 3d program (let's say of a person) and placed it within Illustrator CS6.
    I traced the image and expanded that (and I need to keep this as photo-realistic as possible, including shading/coloring) -
    I now need to group the paths into separate regions - like the arms, legs, torso, and head, so I can export the file in SVG format and let someone manipulate it programmatically - with the ability to re-shade different areas.  There are well over a hundred paths, so manually clicking to group them all together isn't a good option.
    I also have an outline drawing with the exact demarcations of where I'd like to divide the regions (and it's important I get these exact as opposed to just eyeballing it)
    Any suggestions as to how I do this?
    Can I use the outline image (also exported from a 3d program) to slice things into the exact groups I need?
    Or can I bring that in and use a live paint feature on that to choose my areas and then somehow transfer that onto the main image below?
    Thanks for any suggestions.

    Here's an example.
    I made this turkey in a 3d program with different shading domains for hat, wings, body legs, and feet.
    The top image shows this image inside of Illustrator CS6 after I did Image Trace and Expand
    The next image shows all the paths that were created.
    The last is another image from the 3d program with an outline of the turkey with (most of) the domains I want for the turkey (accidently scaled the image, but imagine all 3 are the same size and overlap each other perfectly)
    How do I get from the second stage (with all those paths) - to exporting an svg from illustrator that has things grouped into just a few areas (in this case, wings, body, hat, thighs, feet)
    Thanks for any help. 

  • At open, illustrator puts clipping path on images and slices it up HELP!

    I am still using CS2, but this same problem has happened when I open a legacy (older version) file in CS4.....   When I open a file, it all of a sudden has a clipping path around the image.  Also, it is slicing up some images randomly.  It is very strang and I can't explain it.  I just saved and closed the file yesterday and today I go to open it on the same computer and all the photos have these clipping masks around them and some are sliced into multiple pieces.  Can anyone help with this???

    It's easily explained: It is opening the data as if it were an EPS or PDF, so the fault is probably with the options you chose when you saved the files in
    CS2. Check them. also of course keep in mind that some specific features have notably changed, so it may do thius simply to retain appearance, which you can influence by setting teh respective prefs....
    Mylenium

  • Audio clips cutting off at the beginning, after replacing audio.

    I have received an fla for a complex game, and have been directly replacing the audio clips in it with new ones with the same file name. The game randomly chooses themes, displaying text and a corresponding audio clip.  After replacing the old files with the new ones, out of 20 audio clips, about 6 of them get cut off at the beginning. There is no discernible difference in the length of the clips, or empty space at the beginning between the original audio files and the new ones.
    Is it possible that there is something happening in the actionscript that could be causing the problem? The fla calls a file calls Themes.as, this is the code in the file, case the answer is in there somewhere:
    import utils.Randomise;
    class com.tt.games.newsfinder.Themes{
    //AVAILABLE THEMES
    public static var THEME_1:String = "sports";
    public static var THEME_2:String = "music";
    public static var THEME_3:String = "pets";
    public static var THEME_4:String = "flying";
    public static var THEME_5:String = "new teeth";
    public static var THEME_6:String = "hats";
    public static var THEME_7:String = "bikes";
    public static var THEME_8:String = "swimming";
    public static var THEME_9:String = "zoos";
    public static var THEME_10:String = "shoes";
    public static var THEME_11:String = "bedtime stories";
    public static var THEME_12:String = "moving house";
    public static var THEME_13:String = "cleaning your teeth";
    public static var THEME_14:String = "films";
    public static var THEME_15:String = "painting and drawing";
    public static var THEME_16:String = "food";
    public static var THEME_17:String = "drinks";
    public static var THEME_18:String = "the seaside";
    public static var THEME_19:String = "trees";
    public static var THEME_20:String = "boats";
    //SELECTED THEM
    public static var CURRENT_THEME:String;
    //FRAME LABELS FOR ANT NEWS TOPICS
    public static var TOPICS_SPORT:Array = ["football","cricket","tennis","balls","bowling"];
    public static var TOPICS_MUSIC:Array = ["guitar","recorder","notes"];
    public static var TOPICS_PETS:Array = ["fish","hamster","dog","rabbit","mouse"];
    public static var TOPICS_FLYING:Array = ["plane_green","plane_yellow","plane_small"];
    public static var TOPICS_NEW_TEETH:Array = ["teeth"];
    public static var TOPICS_HATS:Array = ["hat1","hat2","hat3"];
    public static var TOPICS_BIKES:Array = ["bike1","bike2","bike3"];
    public static var TOPICS_SWIMMING:Array = ["goggles","flippers","rubber_ring"];
    public static var TOPICS_ZOO:Array = ["octopus","monkey","snake","dolphin"];
    public static var TOPICS_SHOES:Array = ["shoes1","shoes2","shoes3"];
    public static var TOPICS_BOOKS:Array = ["book1","book2","book3"];
    public static var TOPICS_MOVING:Array = ["box1","box2","box3"];
    public static var TOPICS_CLEANING_TEETH:Array = ["toothpaste"];
    public static var TOPICS_FILM:Array = ["projector","camera"];
    public static var TOPICS_DRAWING:Array = ["pencil"];
    public static var TOPICS_FOOD:Array = ["cake"];
    public static var TOPICS_DRINK:Array = ["tea_pot","cups"];
    public static var TOPICS_SEASIDE:Array = ["sandcastle","bucket","spade","crabs"];
    public static var TOPICS_TREES:Array = ["tree1","tree2","tree3"];
    public static var TOPICS_BOATS:Array = ["boat1","boat2","boat3"];
    public static function fGetTopicsByTheme(p_nLength:Number):Array{
    var l_aTopics:Array = new Array();
    var l_aChosen:Array = new Array();
    switch(CURRENT_THEME){
    case THEME_1: l_aTopics = TOPICS_SPORT.slice(); break;
    case THEME_2: l_aTopics = TOPICS_MUSIC.slice(); break;
    case THEME_3: l_aTopics = TOPICS_PETS.slice(); break;
    case THEME_4: l_aTopics = TOPICS_FLYING.slice(); break;
    case THEME_5: l_aTopics = TOPICS_NEW_TEETH.slice(); break;
    case THEME_6: l_aTopics = TOPICS_HATS.slice(); break;
    case THEME_7: l_aTopics = TOPICS_BIKES.slice(); break;
    case THEME_8: l_aTopics = TOPICS_SWIMMING.slice(); break;
    case THEME_9: l_aTopics = TOPICS_ZOO.slice(); break;
    case THEME_10: l_aTopics = TOPICS_SHOES.slice(); break;
    case THEME_11: l_aTopics = TOPICS_BOOKS.slice(); break;
    case THEME_12: l_aTopics = TOPICS_MOVING.slice(); break;
    case THEME_13: l_aTopics = TOPICS_CLEANING_TEETH.slice(); break;
    case THEME_14: l_aTopics = TOPICS_FILM.slice(); break;
    case THEME_15: l_aTopics = TOPICS_DRAWING.slice(); break;
    case THEME_16: l_aTopics = TOPICS_FOOD.slice(); break;
    case THEME_17: l_aTopics = TOPICS_DRINK.slice(); break;
    case THEME_18: l_aTopics = TOPICS_SEASIDE.slice(); break;
    case THEME_19: l_aTopics = TOPICS_TREES.slice(); break;
    case THEME_20: l_aTopics = TOPICS_BOATS.slice(); break;
    if(l_aTopics.length < p_nLength){
    //make it long enough!
    var l_nDif:Number = p_nLength - l_aTopics.length;
    for(var i:Number = 0; i< l_nDif; i++){
    //add the list itself, in case its length is 1!
    l_aTopics = l_aTopics.concat(l_aTopics);
    //now trim it
    l_aChosen = l_aTopics.slice(0,p_nLength);
    return l_aChosen;
    * get a random selection of topics of a fixed length, not including those from the chosen theme
    public static function fGetRandomTopics(p_nItems:Number):Array{
    var l_aTopics:Array = new Array();
    if(CURRENT_THEME != THEME_1) l_aTopics = l_aTopics.concat(TOPICS_SPORT);
    if(CURRENT_THEME != THEME_2) l_aTopics = l_aTopics.concat(TOPICS_MUSIC);
    if(CURRENT_THEME != THEME_3) l_aTopics = l_aTopics.concat(TOPICS_PETS);
    if(CURRENT_THEME != THEME_4) l_aTopics = l_aTopics.concat(TOPICS_FLYING);
    if(CURRENT_THEME != THEME_5) l_aTopics = l_aTopics.concat(TOPICS_NEW_TEETH);
    if(CURRENT_THEME != THEME_6) l_aTopics = l_aTopics.concat(TOPICS_HATS);
    if(CURRENT_THEME != THEME_7) l_aTopics = l_aTopics.concat(TOPICS_BIKES);
    if(CURRENT_THEME != THEME_8) l_aTopics = l_aTopics.concat(TOPICS_SWIMMING);
    if(CURRENT_THEME != THEME_9) l_aTopics = l_aTopics.concat(TOPICS_ZOO);
    if(CURRENT_THEME != THEME_10) l_aTopics = l_aTopics.concat(TOPICS_SHOES);
    if(CURRENT_THEME != THEME_11) l_aTopics = l_aTopics.concat(TOPICS_BOOKS);
    if(CURRENT_THEME != THEME_12) l_aTopics = l_aTopics.concat(TOPICS_MOVING);
    if(CURRENT_THEME != THEME_13) l_aTopics = l_aTopics.concat(TOPICS_CLEANING_TEETH);
    if(CURRENT_THEME != THEME_14) l_aTopics = l_aTopics.concat(TOPICS_FILM);
    if(CURRENT_THEME != THEME_15) l_aTopics = l_aTopics.concat(TOPICS_DRAWING);
    if(CURRENT_THEME != THEME_16) l_aTopics = l_aTopics.concat(TOPICS_FOOD);
    if(CURRENT_THEME != THEME_17) l_aTopics = l_aTopics.concat(TOPICS_DRINK);
    if(CURRENT_THEME != THEME_18) l_aTopics = l_aTopics.concat(TOPICS_SEASIDE);
    if(CURRENT_THEME != THEME_19) l_aTopics = l_aTopics.concat(TOPICS_TREES);
    if(CURRENT_THEME != THEME_20) l_aTopics = l_aTopics.concat(TOPICS_BOATS);
    l_aTopics = Randomise.fRandomise(l_aTopics);
    return l_aTopics.slice(0,p_nItems);
    public static function fGetThemeByTopic(p_sTopic:String):String{
    if(fIsInList(p_sTopic,TOPICS_SPORT)) return THEME_1;
    if(fIsInList(p_sTopic,TOPICS_MUSIC)) return THEME_2;
    if(fIsInList(p_sTopic,TOPICS_PETS)) return THEME_3;
    if(fIsInList(p_sTopic,TOPICS_FLYING)) return THEME_4;
    if(fIsInList(p_sTopic,TOPICS_NEW_TEETH)) return THEME_5;
    if(fIsInList(p_sTopic,TOPICS_HATS)) return THEME_6;
    if(fIsInList(p_sTopic,TOPICS_BIKES)) return THEME_7;
    if(fIsInList(p_sTopic,TOPICS_SWIMMING)) return THEME_8;
    if(fIsInList(p_sTopic,TOPICS_ZOO)) return THEME_9;
    if(fIsInList(p_sTopic,TOPICS_SHOES)) return THEME_10;
    if(fIsInList(p_sTopic,TOPICS_BOOKS)) return THEME_11;
    if(fIsInList(p_sTopic,TOPICS_MOVING)) return THEME_12;
    if(fIsInList(p_sTopic,TOPICS_CLEANING_TEETH)) return THEME_13;
    if(fIsInList(p_sTopic,TOPICS_FILM)) return THEME_14;
    if(fIsInList(p_sTopic,TOPICS_DRAWING)) return THEME_15;
    if(fIsInList(p_sTopic,TOPICS_FOOD)) return THEME_16;
    if(fIsInList(p_sTopic,TOPICS_DRINK)) return THEME_17;
    if(fIsInList(p_sTopic,TOPICS_SEASIDE)) return THEME_18;
    if(fIsInList(p_sTopic,TOPICS_TREES)) return THEME_19;
    if(fIsInList(p_sTopic,TOPICS_BOATS)) return THEME_20;
    return "";
    private static function fIsInList(p_s:String,p_aList:Array):Boolean{
    var l_n:Number = p_aList.length;
    var l_b:Boolean = false;
    for(var i:Number = 0; i < l_n;i++){
    if(p_aList[i] == p_s){
    //trace("!!! ** match >> " + p_aList[i] + " matches " + p_s);
    l_b = true;
    break;
    return l_b;
    public static function fRandomTheme():String{
    var l_aThemes:Array = [THEME_1,
    THEME_2,
    THEME_3,
    THEME_4,
    THEME_5,
    THEME_6,
    THEME_7,
    THEME_8,
    THEME_9,
    //THEME_10, << removed the shoes topic as we didn't have the audio for it!
    THEME_11,
    THEME_12,
    THEME_13,
    THEME_14,
    THEME_15,
    THEME_16,
    THEME_17,
    THEME_18,
    THEME_19,
    THEME_20
    var l_s:String = String(Randomise.fPickRandom(l_aThemes));
    CURRENT_THEME = l_s;
    return l_s;
    public static function fGetHeader(p_n:Number):String{
    var l_sHeader:String = "Can you find " + p_n + " people who ";
    l_sHeader += fGetActivity();
    l_sHeader += "?";
    return l_sHeader;
    public static function fGetEndTxt(p_n:Number):String{
    var l_sTxt:String = "That's brilli-Ant! You found " + p_n + " people who ";
    l_sTxt += fGetActivity();
    l_sTxt += "!";
    return l_sTxt;
    public static function fGetActivity():String{
    var l_sHeader:String ="";
    switch(CURRENT_THEME){
    case THEME_1: l_sHeader += "played sports today"; break;
    case THEME_2: l_sHeader += "are learning a musical instrument"; break;
    case THEME_3: l_sHeader += "have a new pet"; break;
    case THEME_4: l_sHeader += "have been flying"; break;
    case THEME_5: l_sHeader += "have lost a tooth"; break;
    case THEME_6: l_sHeader += "are wearing a hat"; break;
    case THEME_7: l_sHeader += "can ride a bike"; break;
    case THEME_8: l_sHeader += "went swimming"; break;
    case THEME_9: l_sHeader += "went to the zoo"; break;
    case THEME_10: l_sHeader += "have new shoes"; break;
    case THEME_11: l_sHeader += "read a book"; break;
    case THEME_12: l_sHeader += "are moving house"; break;
    case THEME_13: l_sHeader += "cleaned their own teeth"; break;
    case THEME_14: l_sHeader += "watched a film"; break;
    case THEME_15: l_sHeader += "drew a picture"; break;
    case THEME_16: l_sHeader += "baked a cake"; break;
    case THEME_17: l_sHeader += "made a cup of tea"; break;
    case THEME_18: l_sHeader += "went to the beach"; break;
    case THEME_19: l_sHeader += "climbed a tree"; break;
    case THEME_20: l_sHeader += "have been in a boat"; break;
    return l_sHeader;
    public static function fGetSuggestion():String{
    var l_sTxt:String = ""
    switch(CURRENT_THEME){
    case  THEME_1: l_sTxt = "How many sports can you think of that you play with a ball? How many of them have you played?"; break;
    case  THEME_2: l_sTxt = "Do you know any songs? Why not sing it right now?"; break;
    case  THEME_3: l_sTxt = "How about taking the dog for a walk? You don’t have a dog? Take someone else’s dog for a walk!"; break;
    case  THEME_4: l_sTxt = "Not everyone can go flying, but everyone can fly a kite! Why don’t you make your own kite and see if it flies?"; break;
    case  THEME_5: l_sTxt = "Have you got a wobbly tooth? Don’t forget to put it under your pillow when it falls out!"; break;
    case  THEME_6: l_sTxt = "Does your Mum have a hat? What does it look like on you?"; break;
    case  THEME_7: l_sTxt = "Can your Dad ride a bike? Why don’t you ask him?"; break;
    case  THEME_8: l_sTxt = "Can your Mum swim? Why don’t you ask her?"; break;
    case  THEME_9: l_sTxt = "How many animals can you think of that begin with the letter M? Ask someone else and see who thinks of the most!"; break;
    //case  THEME_10: l_sTxt = "shoes..."; break;
    case  THEME_11: l_sTxt = "What’s your favourite bedtime story? Can you read it to yourself?"; break;
    case  THEME_12: l_sTxt = "Have you ever moved house? Why not ask a grown-up about a time when they moved house?"; break;
    case  THEME_13: l_sTxt = "Have you cleaned your teeth today? I hope so! How many toothbrushes are there in your bathroom?"; break;
    case  THEME_14: l_sTxt = "What was the last film you saw? Do you have a favourite? Ask a grown-up to tell you about their favourite film!"; break;
    case  THEME_15: l_sTxt = "You can draw your news too! Draw a picture of what you did today!"; break;
    case  THEME_16: l_sTxt = "Have you ever baked a cake? Cooking can be fun - and if you make something delicious, that’s definitely news!"; break;
    case  THEME_17: l_sTxt = "Fruits make great drinks. How many different fruits can you think of that you can drink?"; break;
    case  THEME_18: l_sTxt = "You can do lots of different things at the beach. How many different things can you think of?"; break;
    case  THEME_19: l_sTxt = "Can you see any trees outside the nearest window? How many can you see?"; break;
    case  THEME_20: l_sTxt = "Why don’t you make your own boat and see if it floats in the bath?"; break;
    return l_sTxt;
    Any help would be extremely appreciated.
    Thank you,
    Ginger

    If you have not upgraded to version 7 you should do that.
    If you have upgraded to Version 7, be sure to do the updates to 7.0.5
    Go to the Help menu and select 'About Adobe Presenter' to see what version, if it is 7.0, to 7.0.2 you need to update it
    drop down the help menu again and you will see an 'update' option.
    you need to install in order - 7.0.1, then 7.0.2 then 7.0.5 - you cannot install all at once
    another thing you might want to do is open the file you are working on in 7.0.5 snd save it out with a new filename in a new location to combat that pesky problem of the 'media.ppcx' file disappearing....

  • Clipping path in AE?

    I'm missing the empirical mix here, but I have an Illustrator logo that I've imported and want to use it as a clipping path with an image file-JUST like photoshop, but it's not the same in After Effects. How do I create this clipping path? I tried all the alpha silo, etc but nothing seems to work.
    thanks,
    Dave

    A clipping path is equivalent to a Mask or a Track Matte in After Effects.
    To use your Illustrator logo as a track matte, place it's layer above the Fill layer, and then choose the Alpha Matte option from the Matte drop-down list on the Fill layer.
    For more information:
    http://livedocs.adobe.com/en_US/AfterEffects/8.0/WS3878526689cb91655866c1103906c6dea-7cf8. html

  • Is there anyway to activate photoshop clipping paths automatically in CS4/5?

    Hello,
    Can a preference be set in Indesign to automatically apply the photoshop clipping path to Tiff images?
    Cheers Joe.

    You don't need to specify a flatness for indesign to pick up on that path, just need to set that it is the preferred path for an application to use. Paths aren't exclusively used for the purpose of knocking out a background or portion of a photo. You could google up device path flatness and you'll find a spiel something to the effect of set it quite a few pixels for very high res scans, fewer for low res. I believe it is just the tolerance for the application to use in interpreting which pixels to use. After all, a path is a vector outline and the application needs to determine how to cut the photo, which pixels to keep and which to exclude.
    Short adobe word on it.
    http://kb2.adobe.com/cps/327/327368.html

  • Changing clipping paths

    Hello all,
    I have an idea for a script that bases on modifying the clipping path of an image. Basically what I try to achieve is that the image is visible only inside a selected path with some offset.
    Given a document with one polygon and one image with applied clipping path I would expect this to work:
    var aDoc = app.documents[0];
    var aGrap = aDoc.allGraphics[0];
    var aPol = aDoc.polygons[0];
    var ePath = aPol.paths[0];
    var aClip = aGrap.clippingPath;
    ePath = aPol.paths[0].entirePath;
    aClip.paths[0].entirePath = ePath;
    aClip.insetFrame = -2;
    ePath = aClip.paths[0].entirePath;
    aPol.paths[0].entirePath = ePath;
    But these lines
    aClip.paths[0].entirePath = ePath;
    aClip.insetFrame = -2;
    seem to exclude each other. The insetFrame works fine as long as I didn't touch the path. And the changing of the path works fine but the insetFrame doesn't do anything except showing the spinning ball, that spins until I click somewhere on the pasteboard.
    Am I thinking wrongly or is there a bug that makes my idea impossible?
    Thank you
    Gerald

    The VB.NET project file has the .vbproj extension and is an XML text file. Therefore you can make a backup, then edit it using an editor, such as Notepad. Find the old references by path (probably in
    <Reference> elements) and adjust them (perhaps using ‘Replace All’).
    To avoid such situations if similar changes are expected again, then maybe consider mapping a drive letter, such as ‘S:’, to the server. (Ask IT Department). When server is changed, then the mapping will be adjusted, but the paths and references
    will remain unchanged.

  • [CS2] [JS]  Apply photoshop clipping path

    Hi,
    Does anyone know how to apply the photoshop clipping path to all images in a document, If the image contains one ?
    I can't find a clipping path property of the graphic object in the reference manual...
    The loop structure itself is not a problem...
    for (var j = app.activeDocument.allGraphics.length - 1; j >= 0; j--) {
    Thanx
    Tim

    Hi Peter,
    I've just tried using...
    for (var j = app.activeDocument.allGraphics.length - 1; j >= 0; j--) {
    try
    var theEPSItem = app.activeDocument.allGraphics[j];
    var theClippingPath = theEPSItem.clippingPath;
    if ( ( theClippingPath.clippingType != ClippingPathType.photoshopPath ) &&
    ( theClippingPath.photoshopPathNames.length > 0 ) )
    theClippingPath.clippingType = ClippingPathType.photoshopPath;
    catch ( e )
    ... something strang happens when running the script. The clipping path settings of the EPS-files are changed and are correct. However, the result is not yet visible. So I still have to open the clipping path settings menu and click on the ok button... Then the result is displayed.
    Any idea's ?
    Tim

  • Bring in .psd file along with clipping path

    Okay, this client has a very odd request. They want a collage of images put together in one file and they want the clipping paths to be attached. Then it's to be saved as an eps file. I'd like to do this in InDesign rather than Photoshop because the clipping path stays with the image in InDesign when you move it. However, I don't know how to save the file as an .eps file with the clipping paths attached. I open the .eps files in Photoshop and there are no clipping paths present.
    Help would be greatly appreciated! Thank you!

    My suggestion is to compose the entire collage in Photoshop. And if you need to preserve the clipping paths of each image of the finished collage, then convert the clipping path to a vector mask. Then you can drag a layer (that will include image and path) into one photoshop file to make collage.
    Here are the instructions from previous post to convert a path into a vector mask.
    To create a vector mask in PS, select the path in the Path Panel, then under Layer menu > Vector Mask > Current Path.

  • Reset multiple images' clipping paths to "None"

    In InDesign CS4, is there a way to check all images at once and reset their clipping paths to "none?" I work on catalogs that have several thousand photos (tif, Photoshop, and a few jpg files) in each one. We break the catalogs into approximately 10 sections/documents then organize them into a book file/palette, so there are only a few hundred images in each section/document. Originally a clipping path was applied to the photos (either a Photoshop clipping path or a "detect edges" path), but we now save them with transparency, so I'd like to be able to turn them all of at once (especially the "detect edges" paths).
    Any suggestions? I know basically nothing about scripting, so writing a script wouldn't work in this case.
    I appreciate any help...
    Thanks,
    Lloyd

    I'm not sure.
    Isn't it a collection up to this:
    docs[l].rectangles.everyItem().images.everyItem()
    from this point it's got a length:
    docs[l].rectangles.everyItem().images.everyItem().clippingPath
    So this works here:
    #target indesign
    function main() {
              var docs = app.documents.everyItem().getElements(),
                        l = docs.length;
              while(l--) {
                        try {
                                cPaths =  docs[l].rectangles.everyItem().images.everyItem().clippingPath;
                                pl = cPaths.length;
                                while(pl--){
                                    cPaths[pl].clippingType = ClippingPathType.NONE;
                        } catch(e) {
                                  alert(e);
                        alert('All done! You can go outside and play now!')
    app.doScript('main()', undefined, undefined, UndoModes.entireScript, 'Reset Clipping');
    Have a nice day
    Hans-gerd Claßen

  • Cutting out images in indesign, clipping path problems

    Hi,
    I have been putting images of my drawings from photoshop onto indesign for my portfolio,  after looking around the only way I can seem to find to cut them out is using clipping path/detect edges.
    The problem I have is because they are scanned sketches this method produces really inacurate and shoddy results and no matter how much I play around with the threshold and tollerance this means I still have to mess around with the pen and arrow tool for ages on each image.
    Is there a quicker solution to cutting them out like the magic wand or lasoo tool on indesign?
    It has taken days now in in design , I have all the images already cut out from their original pages on photoshop but the white box always comes around again when I drag or place the images in indesign.
    I have been shorcutting some pages and doing layout on photoshop and placing the image behind which works fine sometimes but is really inconviiant when I want to move the layout around text ot anything...... i have attatched some pictures to show you what I mean.
    Thanks for your help in advance
    Leo

    Well Thats 2 days of my life Ill never get back!
    Thankyou very much! cant belive I was that stupid

Maybe you are looking for