Grow a square shape

Dear all:
I want to open and then close smoothly (slide) litle by litle
a square
vector shape. This is the code I use, but does not work.
repeat with h=1 to 200
sprite(2).height=sprite(2).height + h
end repeat
Can you help me?
Thank you

> on mouseUp me
> repeat with xx=1 to sprite(2).height
> sprite(2).locV = sprite(2).locV + 1
> updatestage
> end repeat
> end
What? This won't do what you want at all. You were closer the
first time.
All this will do is move the sprite, not grow it. Also, as I
said, the
updateStage trick is kind of a hack, and can cause other
problems, like
slowing down the playback, and preventing all other scripts
from running.
(It may also interrupt sound playback if you've got any audio
going on.)
Sean's approach will probably work the best. The only thing
that's missing
is that you should have a frame script that keeps the
playhead looping on
one frame until the grow is finished. On the frame, just have
a script that
says:
on exitFrame
go the frame
end
Then alter Sean's script like so:
property spriteNum
property my
property _counter
on beginSprite me
my = sprite(spriteNum)
_counter = 0
end
on exitFrame me
if _counter < 200 then
_counter = counter + 1
my.height = my.height + 1
else go the frame + 1
end
Only difference is I added the command to go to the next
frame after the
grow is completed. (You could also go to a marker or a
specific frame or
execute any other command at this point.)

Similar Messages

  • Making varying images sizes all square shape?

    Hi,
    I also posted this in Photoshop Windows but re-posted here on suggestion from another user.
    I've got a whole load of images of different pixel sizes that I want to batch and make square shape. I want to keep them as big as the small est side of the image will allow. Example: if an image is 2093 x 1573px then I want the square px size to be 1573 x 1573px.
    I can easily change this using the image size option and could easily record an action if all the images were the same dimensions, but since all the dimensions vary I'm not sure how to do this.
    Any ideas?
    Thanks

    The best thing to do is to paste the code into ExtendScript Toolkit this can be found..
    PC: C:\Program Files\Adobe\Adobe Utilities
    MAC: <hard drive>/Applications/Utilities/Adobe Utilities
    Then save the script in..
    PC: C:\Program Files\Adobe\Adobe Photoshop CS#\Presets\Scripts
    MAC: <hard drive>/Applications/Adobe Photoshop CS#/ Presets/Scripts
    If Photoshop was open, close and restart Photoshop so that it can pick up the new script.
    Once the script is in place you can create an action that calls the script.
    Start you recording and from the action palette flyout choose "Insert Menu Item" now goto File - Scripts and choose the script, stop the recording.
    You now have an action that can run on a single file or in batch.
    By the way, its JavaScript and the extension created will be jsx
    Hope this helps.

  • Slice a non-square shape

    I wish to use the slice tool in adobe photoshop cs6 or cc and d slice non-square shapes
    Kindly help
    Thank you

    Even though slices are square. Current CSS allows adding rounded borders.
    If you have the latest version of photoshop, you can copy the css from photoshop to place in a webpage.
    Like so:

  • I can't see my photos! They appear as dotted lines in a square shape.

    when i click on my library or any of the subfolders, most of my photos aren't showing up. i know the image is still there, but i can't see it. instead of a thumbnail pix, there is just a white dotted line in the shape of a square where the pix should be and it's title displayed under it.
    when i double click on the dotted line box, and it brings it up big in the 'edit' box, there is an ! in the middle of the dotted line square. i tried updating the iphoto version to 6 and that seemed to work fine, but still most of my pix aren't showing up.
    maybe 5% of my pix are still showing up, inner mixed with the 95% that have become dotted lines.
    help!
    B- :O)

    Welcome to the Apple Discussions.
    The ! or ? turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Back Up and try rebuild the library: hold down the apple and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    If this fails then it is likely that you have a damaged database file.
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new library:
    Note this will give you a working library with the same Rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Roll Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD
    The most common cause of this is User Activity in the iPhoto Library Folder in the Finder.
    Have you altered, moved or renamed anything in the iPhoto Library Folder?
    Regards
    TD

  • Where can I get a square shape with 2 rounded corners?

    I don't know the name of the shape but it is square or rectangle with 2 rounded corners.
    It is picture # 156 at this link;
    http://www.brusheezy.com/images/previews/0000/0815/36Vectorbrushes.jpg
    Or how would I go about making one in Motion?
    Thanks.

    hi
    funny i did this very same shape the other week. as i remember i think i looked for an easy way but got bogged down. In the end I think I used a combination of a rounded rectangle and an unrounded version and masked the corners accordingly. This is motion 4 with the ability to round corners on all shapes though.
    adam

  • Problem with Image - Image Size (Photoshop CC 2014 Mac.) I get a small square shape in place of a curser

    I tried resizing an image.  I click on Image then Image Size and no dialog box to change the size comes up.  Instead when I move the cursor over the image a small square replaces the cursor.  All the choices in the "Image" drop down turn light gray.  If I hit "Escape" Everything looks normal.   Problem went away when I uninstalled Photoshop and reinstalled it, but it came back.

    Two ideas:
    Open Image > Image Size and hold down the Option key. The Cancel button will change to Reset. Click on it.
    That may work.
    If not,
    Try a Preferences reset from the keyboard.
    Close Photoshop
    Press and hold down Cmd-Opt-Shift   Start Photoshop. Look for  delete settings dialog and click on "Yes"
    Then after Photoshop loads, try the Image Size again.
    Gene

  • Will the iwatch come in different shapes other than the square shape shown.

    Will it come in different shapes? I love the round or circular shape of the Moto 360, so I would love to see a circular watch for iPhone.

    I have heard they will only come in a Triangular Shape. May be a rumour, but so will most everything else be until it is actually released.
    Cheers
    Pete

  • Will Square Mac Pro be available - round won't work - want different shape

    While it's pretty and sleek looking, the mac pro that was annouced on Jun 10, 2013, just won't fly for me. I have to agree with the ad on the apple website that the design is a radical change. But I disagree with the claim that it's logical. Round doesn't fit in with a working world made of square objects. square books, square file, square boxes, square containers. I have very limited space and I need my computer to be functional in shape more than I need it to be pretty. Round will not work as I need to be able to lean books and files against my computer on top of my desk. The smaller size is great. But still square would be better.
    It's time for me to upgrade and I was holding off until after the announcement. But I"m kinda disappointed that my tool of choice extrenal enclosure design is going to be altered so significantly. I"ll have to rework my workspace (which is very limited) and I don't want to.
    Will the beefed up machine be available in a square shape too? That is what I really need.

    Will the beefed up machine be available in a square shape too? That is what I really need
    In case you didn't read carefully the product isn't available until Fall. How would we know any more about than you do? Furthermore, there was no announcement that it would be available square.
    OS X Mavericks
    You will find all the public information about OS X Mavericks here: Apple Releases Developer Preview of OS X Mavericks with 200+ New Features.
    We are all users, too, so we don't know anything more about Mavericks than you.
    For more information on the features of Mavericks see: Apple - OS X Mavericks.

  • Change the color of the outer line of a shape

    Hello I'm trying to create a rectangle with a red border and no inside fill. It's only to highlight some text of a bank form.
    I know i have to right click the layer and choose blending options and stroke. But I've tried to change the color so many times and no matter what I do, the outer line remains gray and with rounded corners.
    I want the corners of the rectangle to be squared, not rounded but I'm having a hard time changing this.
    Please help
    I'm using Photoshop CS3
    thank you
    Could anyone please show a picture of where to change the color of the outer line? I've tried everything.

    Hi,
    With Ps CS3, you'll probably want to define a Layer Style for a Stroke and then use that with the Square Shape Layers.
    This is a Stroke of 4 px, 'Centered' (so a very slight corner rounding on the outside edge. 'Inside' will give you square corners for both inside and outside edges). To change the color of the stroke, go to Layer> Layer Style> Stroke and change the color by clicking on the color bar.
    regards,
    steve 

  • Acrobat Pro XI v.11.0.06 - PDF created by Microstation Print Organizer - Windows 7 -  Printing shaded squares on top of shaded building and not displayed on screen, only displays on paper when printing

    I have attached an image of the sheet to show the areas that are shaded. The building is supposed to be shaded, however the two squares within are not. These squares are not in the file converted to pdf and do not display on screen when viewing the pdf. Also there are several sheets in the set with shaded buildings and only two of the buildings have this issue. Any help with this would be greatly appreciated.

    I'm seeing this same problem happen on multiple platforms here in the office. Every time this happens, the screen view does not show these shapes. I have been seeing the same problem except linework will be missing in one of these square shapes as well. Please give feedback if anyone knows what causes this problem. One thing to note -  these squares are the size and placement of a selection box within acrobat.  For example, if i use the selection tool and click near where the problem printed out, the shaded area that gets selected is in the exact same spot and is the exact size.@

  • Create an Action: insert square box in a corner of the images

    Hello!
    I have a problem with the Actions of Photoshop, I wish you can help me: I need to put a square box (or a point, some kind of mark) in the corner of the bottom-left in hundreds of images, so I think an Action is the best way to do it but I don't know how can I do it, because I need that the mark can adapt itself to the size of each image: it have to be the 5% of the size of the original image. And it has to be a square shape, not a rectangle.
    I hope you can understand me, my English is not as good as it would be... thank you very much for your attention and your advice!
    Best regards!

    I have used part of an old script I made some time ago which was created to place a logo on another image.
    Using this I can place a square box shape which is 5% of the longside dimension of an image in the bottom left corner. In the example shownbelow, the box solid black and is 50 pixels from bottom and side.
    I used a rectangular shape layer for the box.
    If this is anything like what might be useful to you, I can let you have a copy of the script. I can probably modify the script a little if this isn't exactly what you are looking for.
    http://i613.photobucket.com/albums/tt216/georgedingwall/blackbox.jpg

  • There are no shape tools showing up when I apply the fast blur effect.

    How do I fix this or work around?

    Hi amhodrick,
    Do you mean the oval and square shape tools when you select the clip and view the Effects panel?
    When did you last update your copy of Premiere Pro? I think those two shape tools are new to the June 2014 release of Premiere Pro. The Pen tool shown in my screen shot is new to the October 2014 release. (Remember that updating your CC software does not overwrite your installed version. Check your Applications folder and you'll probably see the newer installation next to the older one, and your task bar shortcut icons may still be pointing to the older versions.)
    HTH,
    Stefan

  • Need to add shape to array

    I am currently making a game using a 2D array, the game only has little blocks moving around on the screen and my idea was to make a 2D array from these blocks! BUT the api really confuses me with making shapes and looking at the rectangle sections I thought this was the best option but no when I try to make a 2D array from it nothing works (the array works fine, ive tried it with JLabels) what is the best way to make a square shape? this code looks way too basic and I can't figure out what else I need to do
    public Shape(int x, int y, int width, int height)
        x = 1;
        y = 1;
        width = 1;
        height = 1; // 1 is used as an example!
    }

    From examples of 2D arrays that ive seen people make them out of JLabels mostly and I thought about making a class that makes a square(rectangle) and make the array out of the rectangle. But that method I found on the api doesn't seem to work when it comes to making an array.
    Is that a good way to do it? or should I just stick to JLabels? as I can get those to work(apart form setting their size, I need to look into that).
    I also need to make one of the squares/lables (call it what you will) a certain colour and so when the user presses a button(keylistener) the "player" moves up or down. And I need to have other squares move across the screen (right to left) in another color.

  • Custom shape library

    Hi all,
    is there a way to have the custom shapes library always open on a panel, like the brush preset panel?
    I am using them a lot and I don't understand why I still have to right click to select an other shape, and I cannot  have it on a panel like many other tools (brushes, swatches, style, .....).
    If there is a trick I missed, thank you to teach me.
    thank you in advance,
    regards
    Thomas

    Your diamond looked like it was square to me. So I centered your diamond over your canvas add a vertical  guide at 50%. Measured your square to be 190 PX  Dragged out a 190 PX square shape no fill 1 px red stroke.  Transformed the shape rotating it 45 degrees and moved it up to align with your diamond.   Dragged out a horizontal guide to match your diamond cut. Used the Pen tool to add two control points the square shape. and then use the pen tool to delete the top control point then convert control point tool to convert the two added control points.
    http://www.mouseprints.net/old/dpr/Diamond.psd

  • How can I add a solid shape over my image in Pages?

    I can make a solide image, I made my phot's solid, bute when I put a square shape on it, it will not stay put. The same thing with an arrow to point at a specific place in my photo.
    Anyone an idea?

    Well the first option does not work, When I make my arrow solid it authomaticly replace itself somehere on my page.  I can not find your second option in here .
    I only have these options:

Maybe you are looking for

  • There are songs on my iPhone that I CANNOT delete

    MAIN PARTS OF THE STORY ARE IN RED. Details are in black. Me and the rest of my family share an Apple ID account. I have automatic music downloads and "show all music" turned off, because I dont want their music and stupid apps. The other day I went

  • Sorting in Message Mapping

    Hi, My interface (JDBC to File) from source side I am having 3 fields and from target side I am having 2 fields. Thing is that if third field (Unbranded Material Number) having some value then we have to create new record from target side with plant

  • KE30 - Characteristic in layout does not appear description

    Hi all, I have a query on my KE30 report where by the description of the characteristic does not appear as selection in change layout for object list display. For example, charateristic "customer" only appear value but there is no field in the select

  • Archive log shows 95% full even its empty

    Hi All, My archive directory is mounted on the following file system. /dev/vg00/lvol13   6291456 5947689  322348   95% /oracle/DEV/oraarch even though this oraarch is empty its sowing 95% full and its getting filled for every 5min. Regards Rahul.

  • Duplicate messages being recv'd

    I have an application that uses a servlet to receive messages, and return           responses to a web based client. When the processing of the message takes           too long ( over 5 mins ) due to a sub-system hang, my servlet recv's a           d