[AS] How to create an anchored rectangle in CS3 ?

Hi all,
I'm unable to create an anchored rectangle in CS3 using AppleScript.
I tried this:
tell insertion point 1 of text frame 1
make rectangle with properties {stroke weight:0, geometric bounds:{0, 0, 20, 20}}
end tell
Any help?

Hi Harbs,
As far as I can tell, recompose is still necessary. It's true that you'll usually get good bounds from the rectangle after creating it, but I want to stress the word "usually." I've seen bad bounds in some cases in CS5, so I'm not ready to declare that we can omit the recompose just yet.
Thanks,
Ole

Similar Messages

  • How to create a rounded rectangle?

    I can't figure out how to create a rounded rectangle in Flash
    8... Any one
    want to help me with this?
    Best Regards,
    Chris Jumonville
    iMedia Web Design
    503.277.3553

    You can ignore this. I figured it out.
    Best Regards,
    Chris Jumonville
    iMedia Web Design
    503.277.3553
    "Chris Jumonville" <[email protected]> wrote in
    message
    news:ej6l1r$ano$[email protected]..
    >I can't figure out how to create a rounded rectangle in
    Flash 8... Any one
    >want to help me with this?
    >
    > --
    > Best Regards,
    >
    > Chris Jumonville
    > iMedia Web Design
    > 503.277.3553
    >

  • How to create an interactive magazine with CS3

    I am trying to create an interactive magazine with CS3 and don't know how to do it. First of all, is this possible with CS3 or do I need to upgrade to CS4? And if it is possible, can anyone tell me a step by step plan to follow? Or is there a book or download I can get for more information which is recommended?
    Thanks

    Google is your friend: Interactive Newsletters
    You can make digital newsletters for PDF in CS3 or 4. To make a digital newsletter that can be viewed in a browser (export to swf) you need CS4. Big advantage of swf is much smaller file size than PDF.
    One free bit of advice: design your file horizontally (11 w x 8.5h) since that works best for reading a PDF or swf online.

  • How to create a scrolling rectangl in j2me

    i work in low level api and i have somme problems with the scrolling
    ; i want a drow a rectangl that specifies the level of scrolling and make selection in canvas (every selection do some fonctions...), I need some optimized samples without using the method repaint() every time I scroll my canvas, I have tried that and its so heavy for devices( my paint() use a lot of XML parsers)...

    hi
    i am Jignesh from india..
    i have some problem with MMAPI.
    this is my is [email protected] if you can chat onlin with me

  • How to create a 'window' in AE CS3

    Hello,
         I have a video of a LED scroll sign and I am making it look like my own text scrolls across. I have text I created in Photoshop, saved as a ' .tiff ' , and imported into After Effects. I have put the text in the video and gave it a starting position keyframe (off the sign) and an ending position keyframe (past the sign) and it moves from point to point 'cause of the keyframes. I tried to put a 'mask' on the layer (using the pen tool) around where the sign is (kind of acting like a 'window') so the text would only appear on where the sign is , but the mask moved with the text. How do I create a 'window' type thing for what I'm talking about?
    Sorry if I didnt explain it well, I did the best I could. If you have any questions please ask and I will try to answer.
    All help would be appreciated,
    Nicholas

    When Mylenium refers to the 'Help', he means this document. Actually, for After Effects CS3, this document.
    I strongly recommend that you start here:
    http://blogs.adobe.com/toddkopriva/2010/01/getting-started-with-after-eff.html
    Even though it mentions CS4 and CS5, the basic information is the same for CS3, so it's still a good place to start.

  • How to create a form with DW CS3?

    Hi all,
    I want to create a form to gather email, address information on a website. Question, can I do that using
    DW CS3? and what else do I need in order to do that? I know there is more to it than just creating a form
    with fields, that there is programing behind it. I use 1 and 1.com for my hosting.
    Any help would be greatly appreciated.

    You'll need a form to email processing script.  Ask your host if they provide one you can use.  If not and your server supports PHP, I highly recommend this one from DB Masters.  It is safe, secure and with good spam prevention built in.
    http://dbmasters.net/index.php?id=4
    Other options:
    Forms to Go from BeboSoft
    Wufoo
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How to create explosions?

    hey all!
    Just wondering if any of you know of a plug-in/tutorial on how to create explosions in After Effects CS3? And, are there any random, free or not free, plug-ins you recommend (this question doesn't have anything to do with explosions!)?
    Thanks for your help!!!
    Brad

    Explosions are typically created with particle generation systems, stock footage, or a combination of both.
    Trapcode Particular has preset explosions built into it, but it's not a cheap plugin:
    http://www.trapcode.com/products_particular.html
    The existing Cycore particle systems in AE, CC Particle Systems II and CC Particle World, are good places to start for free.
    You can buy stock footage of explosions from many sources. Artbeats is great but expensive.
    http://www.artbeats.com/collections/206
    Andrew Kramer has a great package called Action Movie Essentials which includes explosions, and its only 60 bucks, including tutorials:
    http://www.videocopilot.net/action.html
    Detonation Films sell stock footage of fire and explosions, but there are lots of freebies on their site. It's mostly DV footage, so not up to the standard of Artbeats, but its cheap and/or free, so who's complaining?
    http://www.detonationfilms.com

  • How to create Anchored Object (CS2)

    Hi,
    Indesign CS2(PC version)
    Javascript
    Any one help me, How to create Anchored object within TextFrame and inside anchor object i want to paste one image.
    by
    Sudar

    Hi Hemi,
    Sure--tell the insertion point to create the object. For example, to add a text frame:
    //Given a reference to an insertion point "myInsertionPoint"...
    var myFrame = myInsertionPoint.textFrames.add();
    Now you have a text frame anchored/inline in the story. Next, recompose the story containing the frame:
    myInsertionPoint.parentStory.recompose();
    ...and resize the frame.
    //Given a frame width and height "myFrameWidth" and "myFrameHeight"...
    var myX1 = myFrame.geometricBounds[1];
    var myY1 = myFrame.geometricBounds[0];
    var myX2 = myX1 + myFrameWidth;
    var myY2 = myY1 + myFrameHeight;
    myFrame.geometricBounds = [myY1, myX1, myY2, myX2];
    At this point, you can adjust the frame's anchored object settings (your settings will probably vary, but this should give you the idea).
    var myAnchoredProperties = myFrame.anchoredObjectSettings;
    myAnchoredProperties.anchorPoint = AnchorPoint.topLeftAnchor;
    myAnchoredProperties.anchoredPosition = AnchorPosition.anchored;
    //NOTE inconsistent "o" in "offset".
    myAnchoredProperties.anchorXoffset = 0;
    myAnchoredProperties.anchorYoffset = -13;
    Hope this helps!
    Thanks,
    Ole

  • How to create a rectangle per entering dimensions rather than by drawing it

    how to create a rectangle per entering dimensions rather than by drawing it

    ReNewUs,
    Just click with the Rectangle Tool somewhere on the Artboard, then insert Width and height.

  • How to create a Gradientcolor from two existing swatches

    Hello all,
    I have 2 colors in the swatches palette.has anyone how to create a new gradient color from this to swatches.
    So far I can get my to colors from the palette and extract their color:
    aSwatch1 = sAISwatchList->GetSwatchByName( colList, colorName1 );
    aSwatch2 = sAISwatchList->GetSwatchByName( colList, colorName1 );
    iErr = sAISwatchList->GetAIColor( aSwatch1, &colorP1);
    iErr = sAISwatchList->GetAIColor( aSwatch2, &colorP2);
    // now somehow create a new gradient:
    iErr = sAIGradient->NewGradient( &gradientHnd );
    but what do now. to get the new color from colorP1 and colorP2. I need a simple linear gradient.
    Any hints?
    regards
    Michael

    Hello,
    > Please, excuse any ignorance below. I'm not well versed in the actual artistic side of Illustrator, just the implementation
    excused because you're the one of the few people here who give thoe most usefull answers
    > Isn't that to be expected though? From my admittedly limited understanding, the gradient being saved is really just a sequence of colour stops. I would have thought since the angle of the gradient is more of a property of how its applied to the path (or whatever) that it wouldn't make sense to save it on the gradient colour.
    No, not from my view (and needs ).
    The color for the gradient has a type of AIGradientStyleMap. this struct contains the angle für the linear gradient etc. This color is added to the swatchpalette so it shoud keep the value.
    If you replace the CreateGradientSwatch function in SnpGradien.cpp of the SnippetRunner with the following code a 2nd swatch with an different angle is added to the swatchpalette when creating a new linear gradient is created (name seems not what it should but 2 swatches are created. Applying this 2 swatches to a rectangle also the angle is changed as it should be.
    So from my point of view Illustrator doesn't take the angle when a new color/swatch is created in the swatch panel. Why the angle is saved by creating a style is another question and difficult to answer without looking inside the source of Illustrator
    ASErr SnpGradient::CreateGradientSwatch(const AIGradientHandle gradient, AISwatchRef& swatch)
    ASErr result = kNoErr;
    try {
    // Insert new swatch at end of general swatch group.
    swatch = sAISwatchList->InsertNthSwatch(NULL, -1);
    // Get gradient name.
    ai::UnicodeString gradientName;
    result = sAIGradient->GetGradientName(gradient, gradientName);
    aisdk::check_ai_error(result);
    // Set swatch name.
    result = sAISwatchList->SetSwatchName(swatch, gradientName);
    aisdk::check_ai_error(result);
    // Create the swatch color using the gradient.
    AIColor swatchColor;
    swatchColor.kind = kGradient;
    swatchColor.c.b.gradient = gradient;
    swatchColor.c.b.gradientAngle = 30;
    swatchColor.c.b.gradientLength = 1;
    AIRealPoint origin = {0,0};
    swatchColor.c.b.gradientOrigin = origin;
    swatchColor.c.b.hiliteAngle = 0;
    swatchColor.c.b.hiliteLength = 0;
    SnippetRunnerLog::Instance()->WritePrintf("gradientAngle: %.1f",swatchColor.c.b.gradientAngle);
    SnippetRunnerLog::Instance()->WritePrintf("gradientLength: %.1f",swatchColor.c.b.gradientLength);
    SnippetRunnerLog::Instance()->WritePrintf("gradientOrigin (v / h): %.1f /  %.1f", swatchColor.c.b.gradientOrigin.v, swatchColor.c.b.gradientOrigin.h);
    SnippetRunnerLog::Instance()->WritePrintf("gradientAngle: %.1f",swatchColor.c.b.gradientAngle);
    SnippetRunnerLog::Instance()->WritePrintf("hiliteLength: %.1f",swatchColor.c.b.hiliteLength);
    // Set the swatch color.
    result = sAISwatchList->SetAIColor(swatch, &swatchColor);
    aisdk::check_ai_error(result);
    // making a 2nd swatch
    AISwatchRef swatch2;
    swatch2 = sAISwatchList->InsertNthSwatch(NULL, -1);
    result = sAISwatchList->SetSwatchName(swatch2, (ai::UnicodeString("Grad2")));
      // Create the swatch color using the gradient.
      AIColor swatchColor2;
      swatchColor2.kind = kGradient;
      swatchColor2.c.b.gradient = gradient;
      swatchColor2.c.b.gradientAngle = 60;
      swatchColor2.c.b.gradientLength = 1;
      swatchColor2.c.b.gradientOrigin = origin;
      swatchColor2.c.b.hiliteAngle = 0;
      swatchColor2.c.b.hiliteLength = 0;
    result = sAISwatchList->SetAIColor(swatch2, &swatchColor2);
    catch (ai::Error& ex) {
    result = ex;
    return result;
    The CS3/CS4 question is easy: for CS3 i use the CS3 SDK and for CS4 I#m working with the CS4 SDK :-)

  • How to create a shape based on the shape of an image

    I want to erase a portion of a mask based on the shape of an image. how can i do this? btw how to create a circle? thx

    Both your questions leave room for imagining what you might really mean, but here's a shot at answering them.
    If you have a mask that you want to erase portions of based on an image... assuming the mask is a simple rectangle you drew with the rectangle tool, change the opacity of the rectangle's fill in the color panel to make it see-thru, place the mask over the image, and using the eraser tool, erase the portions of the mask that you do not intend to retain using the image below it as a guide.
    As for drawing a circle, hover over the rectangle tool and a menu should appear.  Select the oval/ellipse tool.  To draw a circle, hold down the shift key and draw just as you did for the rectangle.  The shift key forces it to retain equal width and height.

  • How to create text buttons that link to video?

    I've finally gotten around to trying DVD SP, and even though I read the whole manual, it's not at all clear if, or how, you can create text buttons that link to the video you want to play, without displaying a clip of that video in the button itself.
    I have no problem creating a text button, but I can't change the font, and editing is counter-intuitive, unlike iDVD. I'd use iDVD, but it doesn't accept .m2v files, and it seems to think that my 6 videos of about 43 minutes each are too large for a DVD+DL disc, so it won't let me burn it or save it as a disc image.
    Does anyone have a way out of this conundrum, or am I SOL?
    Mulder

    It really isn't that hard!
    As Drew said, go into your menu and click and drag to create a button rectangle. With the button highlighted, look in the property inspector at the bottom and type in the text that you want to use. Ensure that you 'include in button highlight' and then set the colour choice for selected and activated.
    What you get is a simple line of text which illuminates when you roll over it, and changes colour when you click on it.
    Once that is done, click on the button area again and set the target to go to the piece of video that you want to have play back.
    You should also set the menu call and end jump on that track to make sure your viewer can get back to the menu.
    Once that is done the menu will show as a simple piece of text (more buttons means more bits of text, and the first button will be highlighted by default) and no video will play until the button is activated.
    DVDSP is definitely a steeper learning curve than iDVD but for very good reasons. You get far greater control and access to far more advanced features in DVDSP. This means that some things will seem harder, whereas in fact they are just different and the process for achieving the result you want is different. Much of what you want to know is in the manual and also in the tutorials which came with the app. Failing that there are several good online spaces where you can find a lot more information... not least of which is right here, of course!

  • How to create subpicture for a button?

    Hello!
    I have really tried to find the answer to this rather silly problem on my own, but without result. Please help someone!
    The situation:
    I have a menu with three choices: "Play Movie", "Scene Selection" and "Subtitles". Now, the text presenting these choices are part of the background image, created in Premiere (the program I know best). They are written with an old typewriter to get that gritty feeling.
    I want the user to scroll between these "menu items". The currently selected item should be indicated by a black circle/spot/dot before the text of the item. By default, when the menu appears, there is a black circle in front of (to the immediate left of) the item "Play Movie". The user should now be able to step with his/her remote to the other items, thereby making the black circle in front of "Play Movie" disappear and appearing instead before some of the other items. In short: the black circle is always showing before the currently selected item. OK, I got a bit verbose there, but the idea got across hopefully. One more thing: the background color is 100% white.
    Up to this point, my solution was this: I placed black circles (small images with gradation and all, very nice looking) in front of ALL THREE ITEMS. Then I convert these into buttons. Then I choose the color set for the menu so that the unselected state is 100% white, plain and simple, with 100% opacity, thereby covering the black circles that should not show. Only in the selected and activated states does opacity for the button subpicture drop to 0%, thereby revealing the black circle that should be seen.
    The problem? Well, on some DVD-players (not on the XBOX 360 though), when an item is activated, all three circles show for a brief moment before the selected action starts (for example playing the movie). It also happens in Encore Preview. This is not logical at all and looks amateurish. I don't know why it happens, but my guess is that it wouldn't if I did this the "correct" way: by creating subpictures fo the buttons in the shape of circles. I understand the nice looking gradations must go out the window but that is a price I'm willing to pay.
    But now I run into an unexpected problem: I don't understand how to create a subpicture for the button that is a black circle. It seems the documentation in Encore and on forums in general takes for granted that you know how to do this.
    What I tried ws this: I created a monochrome, small image in bmp format - a black circle on white background. But this image just shows up as a black rectangle in Encore.
    What should I do? I should add that I have no real experience with Photoshop, so go slow if you go there.
    Regards,
    Nikolaj

    Basically, when one realizes the limitations of the Sub-picture Highlights, as set by the DVD-specs., it's easy to see the "workaround."
    A couple of the aspects of Sub-picture Highlights are:
    1.) 2-bit color (either ON, or OFF), from a limited color palette, with degrees of Transparency (the opposite of PS's Opacity).
    2.) they will appear on top of anything else on the Menu, including things like Button text/graphics.
    By constructing your Sub-picture Highlight in PS, you can use Masking to define where it will be, and where it will not be. In the case that prompted my article, the poster had a series of Text Buttons, and the Sub-picture Highlights were formed from that Text. The poster did not like the look of those 2-bit jagged blocks of color overlying the Text in the Button. The workaround is to "punch a hole" in the Sub-picture Highlight, so that it is hollow, where the Button's Text appears. This is done in PS, by using the "outline" of that Text to create a Mask for the Sub-picture Highlight. The jagged aspect can be adjusted a bit, by using a degree of Transparency (set in the non-Auto Color Set back in Encore). We still have a 2-bit color Sub-picture Highlight, and it still overlays the Button's Text, but now there is a hole in it, right where the Button's Text is located, and it is seen through that hole. The introduction of Transparency has the visual effect of "softening" the look of the 2-bit color, even though the jagged edges are still there - they just look softer. I went on to show how one could even use a second Sub-picture Highlight, that is just a bit larger than the first, and with more Transparency to simulate a "glow." Now, we cannot have a real "glow," because we are limited to that 2-bit color for the Sub-picture Highlight, but we can simulate it.
    Much of what a designer does is really slight of hand - illusion. They all have to work within the limitations of the DVD (or BD) specs., but with a bit of creativity, planning and some work in PS and Encore, they can create enough smoke and use enough mirrors to fool the user into believing that what they think they see skirt the DVD-specs. They do not, but that's where the illusion comes in.
    We get a lot of questions from people, who claim that one commercial DVD, or another, has full-color Sub-picture Highlights and they complain that Encore cannot do that - only 2-bit Sub-picture Highlights. What they are seeing, but do not realize it, is a dupe Menu, with a full-color graphic, and no real Sub-picture Highlight visible. Jeff gives full details on doing this. Same for those who have seen a Button with a duo-tone thumbnail, that turns full-color, when the Button is navigated to. Wow, how did they do that, and why can't Adobe Encore do that? Well, what they saw was a dupe Menu, with a full-color thumbnail and no visible real Sub-picture Highlight.
    Jeff shows how to create what appears to be at least a 3-color Sub-picture Highlight. It's really just 3 regular 2-bit color Sub-picture Highlights, with Masking to create the illusion that he beat the DVD-specs. Neat! [Being from the USA, I also liked that he used the US flag, but he could have chosen the French "Tri-color," or any other flag, without artwork.]
    These are all just tricks, but if the user buys into the illusion, who's to know?
    Enjoy,
    Hunt
    PS - though many of the great, older posts were lost, when the forum changeover happened, I strongly suggest reading the posts here. You can bypass ones that do not offer you anything, but almost every possible illusion has been discussed at least one time, and likely many, with some different workflows offered by those, who replied. Great reading.

  • [CS3 JS] How to Create a Timer?

    Within InDesign I need to be able to fire a periodic process to examine links from a JavaScript script. I have my own script running in its own engine.
    I can't figure out how to create a timer that will run in the background and call the appropriate callback function periodically.
    I've created a little process like this:
    * Sleeps for waitTime milliseconds then calls the callBack function.
    function timer(callBack, waitTime) {
    $.writeln("timer(): callBack=" + callBack + ", waitTime=" + waitTime);
    if (waitTime == undefined) waitTime = 2000;
    $.writeln("timer(): sleeping for " + waitTime + "...");
    $.sleep(waitTime);
    $.writeln("timer(): awake, calling callBack");
    try {
    return callBack();
    } catch (e) {
    $.writeln("timer(): Exception from callBack.exec(): " + e);
    return undefined;
    function myCallBack() {
    return Window.confirm("Callback called", true, "Continue looping");
    while (true) {
    if (!timer(myCallBack)) break;
    And this works in the sense that my timer runs, but it runs as a blocking process, which is not what I want.
    Is there something I'm missing or is this simply not possible in CS3 JavaScript? A search on "timer" in the InDesign forums didn't reveal anything, nor did the InDesign JavaScript Guide nor the Scripting Tools Guide.
    Thanks,
    Eliot

    1. Download and install Active Page Item Developer Toolkit.
    http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item-developer/
    You'll have a demo period for 20 days or a month, I don't remember exactly.
    2. Create a new document, open 'Active Page Item Developer' panel (Windows menu).
    3. Copy the script from my previous post, draw an object - e.g. a rectangle and with the object selected enter 'idle' into Event Filter field, then press Tab and paste the script into the largest field.
    You'll see an alert appearing every 10 seconds and the cursor flickering.

  • How To Create A Website Background Video In Adobe Edge ?

    Hello,
    I have video file in my computer SSD drive and i want it to play as background on my web page (page that i am creating).I did try to follow this video:
    How To Create A Website Background Video In Adobe Edge Animate Using Edgehero - YouTube
    but i cant follow 100% what he is doing.
    Guide that i did try to follow is at this link: How To Create A Website Background Video In Adobe Edge Animate Using Edgehero - YouTube
    Steps i do in Adobe Edge Animate CC
    1.) Create New
    2.) i click + sign under section Library >> Scripts >> Add JS File from URL...
    URL that i am adding is: http://www.edgehero.com/edgehero.js/1.2/edgehero_1.2_min.js  (URL is taken from site: Edgehero.js )
    I add this link: http://www.edgehero.com/edgehero.js/1.2/edgehero_1.2_min.js to box that occures after i click on Add JS File from URL
    3.) I go to Edgehero.js and from there i scrol down to section named as Media - Html5 video / Html5 audio
    and i select from there this:
    there is a code:
      // this will set the video as background of the div/rectangle
    backgroundvideo_1 ='movie.mp4';
      // put new edgehero.js variables here
    4.) I go to Adobe Edge Animate CC 2014 and right click on project and select Open Actions for "Stage"
    and then i click on + sign and select creationComplete
    This will open Stage window
    there i will copy this code:
      // this will set the video as background of the div/rectangle
    backgroundvideo_1 ='movie.mp4';
      // put new edgehero.js variables here
    5.) Then i click on ++ sign under library >> Video
    and i add video from my computer SSD drive.
    Video is named as video3.mp4
    Now i eddit the code in Stage window (See above)
    code will look after editing like this:
    Then i change under left side px to %
    6.) Then i copy backgroundvideo_1 from Stage Code:
    Then i select Rectangle Tool and mark the area  (white box) and i click on small C icon
    And the box that occures i type there backgroundvideo_1_mp4 autoplay
    now when i use ctrl and enter i only get gray box that does not play video.
    What am i doing wrong?

    Here is the html file.
    Note video file that i try to add is random training video from youtube, And file format is saved using this site:
    How do I download and save a YouTube video to my computer?
    this is only for testing as i am not gonna put that video on background to my web page. I am only trying to understand how to add video as background.
    http://www.filedropper.com/test3_5
    http://www.filedropper.com/test3_6
    http://www.filedropper.com/test3edge
    http://www.filedropper.com/test3edgeactions
    http://www.filedropper.com/test3edgepreload
    Goal is to create background video like u can see here:
    Adobe Muse Tutorial - Responsive Design Hack! by MuseThemes.com - YouTube
    Similar possibility is available also in Edge as i understand?

Maybe you are looking for