Changing a circular vector shape's size

I need to be able to change (via lingo) the vertex list of a
circle so that
it becomes bigger/smaller based on the user dragging the
mouse. I can't just
change the rect of the sprite, as I want to extract the alpha
from the
vector member when the user has stopped dragging the mouse.
I can change the size of the vector shape easily by
incrementing/decrementing each vertex (4 in a circle) but of
course it loses
it's shape because I am not adjusting the points that make up
the handles. I
would imagine that for circles, there is a simple formula for
calculating
the points of the handle based on the vertices. Does anyone
know? Is there
a simpler solution I am overlooking altogether?

I also have seen some issues working in the vector editor.
Fortunately that
is not what I am doing. Users of the program I am building
can create shapes
by clicking and dragging their mouse. Behind the scenes the
code is
adding/modifying the vertexList of a single vector shape.
This is all
working rock-solid. Previously users could create rectangles,
polygons
(including complex polygons) and freehand shapes using
vectors, but I want
to add circles.
This is all part of a multi-user game, where one user is
creating these
shapes and sending them to other users (movies) over the
internet. Sending a
small list of coodinates is much more efficient than sending
an image.
Movies on the other end can reconstruct the shapes based on
the vertexList
received. Also I have already implemented the code to handle
vectors, and
would like to avoid having to write extra code just to handle
circles drawn
in a bitmap member.
Any way I have noticed that the ratio of a vertex point to a
handle point is
consistent for circle shapes, approximately 1.786. So I wrote
a fairly
simple function that takes the desired radius as a parameter
and updates
vertex and handles appropriately. I haven't fully tested this
yet, but
initial results seem to be acceptable for my needs.
Thanks

Similar Messages

  • Change color of vector shape in library with AS?

    Hello, I am working on a project that some one else created. There were very orgainized, but my question is this: There is a starburst shape, and in the property inspector it is labeling as yellow burst, and that's how it shows in the library. But one instance of it is red in the movie, and I can not find it to change or delete as they called everything dynamically. Any help on how this was done, or how I might locate this object? thanks

    Thanks, I know you can see there, it was just nested really deep. I found it and saw that it was tinted another color. Did you see my other post about creating a popout window? Thanks again for your fast responses....

  • Created a CYMK vector shape logo in photoshop, now need to change to spot colors HELP!?

    I have created a 3 color logo with vector shapes in photoshop CS6.  The problem is the client wants it to be 3 spot colors rather than CYMK.  Does anyone have a quick and easy way for me to change the individual vector shape layers into various spot colors instead that maintains the vector quality?  I don't want to have to redraw all these shapes.  Help would be VERY appreciated with this.

    Your client is speaking in the language of Illustrator, in which spot colors represent specific, sometimes specialist colours.  I can think of no reason why you can't use Photoshop, but ask the client if they want to provide you with values for the spot colours?   If I understand it correctly, the printer will interpret each of the three spot colours you use, to represent the specific inks/colours the client needs.
    Use spot colors | Adobe Illustrator CC tutorials
    You encounter it sometimes when printing catalogs which contain sponsor logos.  I can remember once getting an incredibly detailed PDF from Canon on how we could use their logo, with warnings of dire consequences if we got it wrong.

  • BUG? - Vector shapes move after when resizing PSDs with layer comps.

    I use layer comps to show different interaction steps through my designs.
    Designing mostly for mobile, i create at @1x (72 Pixels/Inch) resolution, and then scale up to @2x (144 PPI) and @3x (216 PPI) to get my assets for higher resolution devices.
    However when i scale the PSD, all vector shapes within it offset themselves by one pixel up and to the left for @2x resolution and two pixels for @3x resolution, meaning all my careful alignments go out the window. Raster elements and text fields behave as they should and do not shift.
    All my vectors shapes are bang on the the pixel to begin with so that's not a factor, and the scaling is a multiple so again that isn't the cause either.
    You can see the issue in the image attached.
    The obvious white edges along the right and bottom edges are revealed after the scale and layer comp change as the shapes shift.
    The bitmap layers equivalent on the right are fine.
    You can try it for yourself by downloading this PSD...
    http://neonstate.com/scale-layer-comps-test.psd
    1. Open the file
    2. Change the resolution by going to Image / Image Size and entering 144 or 216 as the resolution.
    3. Step through the layer comps, you'll see after the first layer comp is changed that the vector shapes shift, affecting all layer comps.
    I'm sure this didn't used to happen, but what it means is I can no longer use this technique.
    I'm using Photoshop CC 2014.2.2 / 20141204.r.310 x64
    Any help much appreciated.
    Rob

    Hi again,
    The purpose of this checkbox in the Layer Comp settings is to remember the positions of items, if you turn it off then you can save the positions which defeats the point a bit.
    I've created another example to better explain - http://neonstate.com/scale-layer-comps-test-reposition.psd
    If you step through the layer comps you'll see the shapes move from one position to the next, i've set these positions specifically.
    Now change the resolution to 144 or 216.
    Everything looks fine until you step through the layer comps - the boxes change position as they should, but the vector ones are incorrectly offset to the top left.
    Rob

  • How do I change the units for the vector shape stroke in the option bar?

    I work with vector shapes very often in Photoshop. In CS6, they have added the stroke and fill tools in the option bar.
    If I open a file with vector shapes that was created in CS5, the stroke defaults to 3pt. I would prefer it to default to pixels instead of points. I have found that if I change the settings prior to creating a new shape, it retains those attributes for all future shapes. However, if I am working on an older file, and would like to use this tool, it is frustrating to have to change this unit every time.
    Any assistance would be helpful. Thanks!

    Every time I move the volume, it moves back!
    Check, if you have a volume automation set on the software instrument track.
    If the track volume automation curve is enabled, the volume slider for the track will move with the automation curve.
    Click the automation curves disclosure triangle in the track header and disable the volume automation.

  • Double-clicking a transparent vector shape pretends like it's going to let you change the fill type

    One thing that's irritating/confusing/non-intuitive about the new vector layers is that, if your vector layer has no fill, then double-clicking on the layer will bring up the controls for whatever type of fill you had before changing it to "no fill". That part is a bit confusing, but not too bad. The bigger problem is that, if you then try to change the fill from those controls, the vector shape remains unchanged after you click OK. So in other words, if my vector shape currently has no fill, and I double click it and select a new color from the color picker, obviously I want the shape to have that new color when I click OK, but instead nothing happens.
    For those who like to answer questions that were not asked , I am aware that you can (finally!) change the fill type by clicking the appropriate fill button in the Options bar. I'm not talking about that right now.
    I think the option to change the type of fill should be available in the color picker window, the gradient fill window, and the pattern fill window, so you can switch fill types on the fly.

    Thanks for the feedback.
    The best (and recommended) way to change the fill of a shape layer is to use the option bar panels for the vector tools. These are going to give you the best up-to-date shape layer controls.
    But we left in the legacy behavior of double-clicking on the layer thumbnail to change the fill options as a way of easing the transition to the new shape layers. We didn't make any changes to these dialogs or their overall behavior, which is why they don't allow you to change the fill type and why the layer appearance doesn't update if the fill is set to None in the options bar.

  • Adobe CS5 - How can I place vector shapes behind a mask?

    Hello,
    I am creating a logo in Photoshop which will have rows of horizontal lines that form the shape of a hexagon.
    This is what part of the logo will look like:
    I used the Vector Shapes tool to create the lines, because I will need to re-size the logo without distorting it.
    I want to use a mask shaped as a hexagon to cover the edges of the lines. Here is how I created the hexagon mask:
    New layer
    Polygon tool
    Changed the setting to Paths
    Created the hexagon
    Went to Layer > Vector Mask > Current Path.
    After I created the mask I tried to see if I could copy and paste the lines (still vector shapes) into the blank area of the mask, but when this happened the lines were converted from vector to raster form.
    What is the best way to mask multiple vector shapes without changing them into rasterized images? 
    Here are the screenshots:
    BEFORE:
    AFTER:

    Did you try clipping the two layers? Place cursor between layers, hold down the alt/opt key and click.

  • How to draw vector shape?

    I use following statement to draw a shape
    [CODE]for(....){
      sprite.graphics.beginFill(..);
      sprite.graphics.drawRect(x,y,1,1);
      sprite.graphics.endFill();
    }[/CODE]
    But I find above shape is not vector shape.Because I change the IE size,I find the size of shape don't automatic change. How to use sprite.graphics to create vector shape?
    Thanks

    Set Flash object size to 100% x 100% in the HTML - then you'll see your drawing changes the size as you resize the browser window.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Vector shape to smart object, is blurry when scaled

    I've recently been upgraded to Photoshop CS5.5 and am having issues with smart objects.
    Quite often I would:
    make a shape layer, say a circle
    apply a layer style, say a stroke and drop-shadow
    Convert this to a smart-object
    Resize this object to whatever I needed and it would scale perfectly, the layer styles and crisp edge would scale.
    Now, when I use this same workflow, the whole object becomes blurry - like it's become one giant bitmap instead of retaining its original nature.
    The blurred smart object loses it's vector nature and looks horrible, this is surely an error.

    It depends on how you scale the smart object layer. If you just use Ctrl+T free transform Photoshop will matieilize the pixels for the layer then resize the materilazed pixel layer like normal raster layer not text not a shape layer. If on the otherhand you double click on the smart object icon in the layer in the layers palette Photoshop will open the smart object in photoshop. If it a RAW file it wil open in ACR. If is is a Photoshop Document like a PSD, Tif, Jpeg etc it will open in Photosgop. If it is some Photoshop object like a layer group a collection of layers an vector shape layer it will open in Phpotoshop.  You can then scale the smart object  with Photoshop tools like ACR or Image size set resample constrain scale layer style etc to scale the smart object when you use save the change Photoshop will update the smaer object layer in the document. You can do the save by clicking the Close icon and respond yes to save.  Scaling the smart object layr this way  will scale text and vectors the way you want them to be scaled.
    http://forums.adobe.com/message/3498406#3498406

  • Vector shapes suddenly looks jagged when exported from InDesign to pdf

    I've read several discussions on pdf export topics but none of them seem to solve this issue. I have an indesign document with multiple pages, its both vector shapes, text and pixel graphics. I worked on this for weeks and I exported this document to pdf numerous times and it all looked good every time I did it. All of a sudden I started to get a very bad looking export, just out of the blue the shapes, logos etc got this jagged look and it looks aweful - see my enclosed examples.
    I have done nothing to my pdf export setup, InDesign setup or any screen preferances. It's just a mystery to me. It seems to be hurting all my sirculare shapes and not my text in general! Every pixel image / photography exports perfect to pdf. My page display is set to smooth text rendering in my pdf preferences. What's up? What puzzles me is this happened so sudden after numerous fine exports.  I'm using InDesign CS6.
    This is the O in a logo that's been placed on a page. The right one is what I get when I export to pdf now, the left one is what I used to get

    John, your are very wrong about post #2. I personally had a rendering problem that was all solved by setting the opacity to 99.9% - it was exported horribly but fixed by this operation. You can read other user stories that confirms this too. But this is not the same issue so let's leave it at that. I just wanted to mention it in terms of having jagged exports.
    There's been no updates thats been changing the Acrobat settings. Acrobat has a default setting in terms of page display that I haven't changed ever as a matter of fact. I shared that info in case someone asked. I'm not connected to any printer, the file is for screen view and third partie receivers can print if they need to (I'm not connected to any printer at work, there's a no print policy). Watching the corporate identity material look terrible on the screen is hardly something a marketing manager likes to do and I don't wanna be the designer responsible for that. So all I want is to solve this mystery and get things back to how it was just two days ago. As described nothing is changed in terms of technical things AND the same terrible results occur when opening a new indd file with a new vector file and exporting that. So the error is not connected to a spesific document or file.
    I remember having export rendering problems of all kinds in CS3, CS4 and CS5, it was all sort of quirky operations I had to do to solve them. Once I actually sat on the phone talking to a technical advisor at Adobe in Ireland while he was trying to explain that this was one of those weak spots of InDesign vs Acrobat. I was emailed a script, if that's not a bugfix I don't know what is. He tried to explain how to embedd the file into the installation setup but the end of the story was a full CS4 MA Collection refund. I'm trying to avoid placing foreign calls this time around and nothing has helped so far. I've been reading endless forum threads different places that describes the problem I have but they never end up with a solution for InDesign CS6 and export routines. It's just a series of errors and questions. I've turned the stone a million times, but all I see is...stone

  • Ps CS5 vector shape redraw problem

    So I use vector shape layers a lot where I feather the edges to make shadows and what not; I also place layer masks on them.
    The problem I'm having is that when I move the shape around in the document, most of the time the image stays where it was originally and doesn't update to the new location.  That is unless I click on the vector mask, move it back and forth, and turn the layer mask on and off – only then does it update to the new location.
    I hope this makes sense, but if not ask away.  I didn't see any other threads regarding this issue, but if I missed it please redirect me.
    Thanks!
    I'm running Ps 12.0.4x64 on a MacBook Pro – OSX 10.7.2 – 2.3GHz Core i7 with 8GB RAM.  I've had this problem on two other Macs as well.

    Boilerplate-text:
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by pressing command-alt-shift on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)
    If 3rd party plug-ins are installed try disabling them to verify if one of those may be responsible for the problem.
    Does turning off OpenGL in the Performance Preferences and restarting Photoshop have any bearing on the issue?

  • Photoshop CC Vector Shape Fill Defaults issue

    For some reason whenever I create a vector shape the default Fill is always Pattern instead of flat color.  It used to default to whatever the last style I used in CS6, but for some reason in CC no matter what all shapes I make are default ugly bubble pattern that no one would ever use.  It's annoying to have to change the color of every single shape I make and I can't find a way to make it not change back to that pattern every time I make a new shape.
    Anyone else have this problem or know how to set what my default shape style is?

    It isn't entirely intuitive, but Chris is right, except that it's not "the last thing you used, " instead it's the last setting you changed before drawing a shape. PS will ignore the last setting you used if you change it after creating the shape.
    The trick is to change the settings before you draw a new shape. Then PS saves that as the default.
    I was pulling my hair out in frustration because I would draw a shape and it would have some rather annoying settings from a couple of weeks ago. I'd change it expecting that it would behave like the Text tool. Where the last settings you used becomes the setting for the next text box you create. But for what ever reason it does not behave as expected. I'm assuming it's because it's inheriting some behavior from Illustrator or where ever the tool was borrowed from.
    Either way, change your settings BEFORE drawing the shape and you'll be good.
    Thanks, Chris.

  • Why do vector shapes in scaled smart objects blur?

    This remains a point of frustration.
    Why does converting a vector shape to a smart object in Photoshop mean that it's then treated as a bitmap and blurs when scaled up?
    If i paste the same vector shape into Illustrator and then back into Photoshop as a smart object it then behaves correctly, and remains sharp.
    See the image for example of what i mean. Left is the master shape, centre is it converted into a smart object in Photoshop, right pasted to and from Illustrator. These were then scaled 300% resulting in the centre one blurring.
    I don't really want to have to invovle Illustrator in this way and keep all my vector work in Photoshop now it has the tools to do so, but this issue creates me a lot of extra work.
    Or am i doing something wrong?
    Rob

    Smart Object layers are transform to other sizes through interpolating the pixels rendered for the embedded object not be using vector graphics on the embedded object.. If your resize resizes the pixel count way un the image will become soft.  Yoy can try seting your Photoshop Default interpolation setting to other setting then Adobe default Bicubic Automatic to something like plain bicubic which IMO is a better general purpose option then Bicubic Automatic.
    You can also open the embedded object by double clicking  the smart layers smart object icon in the layers palette. Once opened in Photoshop resize the vector graphic using Image size and save  the embedded vector object larger. Photoshop will update the smart object layers content then.

  • Please bring color back to vector shapes in Layer Palette with no-thumbnails.

    Please bring the color box back to vector shapes!
    I am one not to use images in my layer palette, and in CS5 this was a breeze, but now the icons are different, there is no white box on the icons anymore (which really helps when scanning, and differentiating from folders), and I can't preview the color of the vector shape that I created in Photoshop. Vector shapes are a big part of my work. Before it would show a box with the color, now it shows nothing. The linking vector box is not neccesarily important as long as when I click it, the points become live.
    Also the dividing lines for layers is not strong enough, doesn't have to be white, but at least gray. Black is definately not helping to divide the layers. And for nested layers, having the dividing line go half way to the edge really helps alot.
    I noticed that a lot is different about the "no-thumbnails" version of the layer palette, and some I can live with, some changes I cannot. But being able to preview the color of a vector shapes is important for me, and seeing the white box behind the icon really helps when scaning a lot of layers. I've attached a comparison, also I have attached an image of how my layer palette looks on a daily basis from CS5 and CS6, I also opened the folder, and matched the palettes so you can see what I mean. Those little things really make a difference when scanning up and down 50-100 layers.
    Even though setting the layer palette to no images may be a rarity among photoshop users, it's something that I value in photoshop, especially since my documents have hundreds of layers.

    I think it was a fair assessment given the circumastances of the answer you provided, Jeanne. Also, another thing is that posting under an "employee" account, you are speaking for the company. You are representing the company whether it is your intention or not. Even if you explictly state that what you say is your personal opinion, people might have mixed feelings about what you say and mistake it for a belief that the whole company shares. So be careful with that, just as a note for the future.
    But anyway, as for the issue at hand... That still doesn't give us anything other than "we won't do it." And again, I advise you to look through the post I referenced to. There are some very easy solutions there that help make the layers palette much easier to scan and work with. It's not too difficult to fix this and as already said above, you're already working on a fix for the thumbnails themselves anyway.
    The solution to this problem could be as easy as this (I can provide another graphic for the darker UI settings, if you want):
    What you do is:
    Display a bigger thumbnail of the layer icon (yes, that will use up more space in the no-thumbnail view, but that's not a huge problem compared to what you have now)
    Clearly display the content of the layer (in this case, both layers are gradients, but it could also just have a solid color fill)
    Lighten the color of unselected layer's names (to make the properties of the layer itself stand out better),
    Make the layer thumbnail itself (if it's a vector layer) toggle the path outline on and off and
    Bring back the separation line from CS5, which indicated the layer's position in the grouping hierarchy.
    If you do that, you've already solved quite a lot of the scannability and readability problems. In the future, you could improve the iconography to be better optimized for quick scanning, to make them stand out better (give them more depth) and so on, but for now, this should be enough to make things better for most people. And also, this will not take up too much development time. You've already got the logic of the separation lines from CS5, for example. Shouldn't be too much of a problem to implement in CS6. I'm not going to speak for the other things, because I don't know too much of the internal workings of the program, but it shouldn't be too much of an issue.
    Trust me, this change will make a world of difference. People will love this even if they don't understand that it's there or why they love it.
    Would you like me to provide detailed wireframes and documentation, so your designers don't have to worry their heads about this one? Just asking, because this is a change that should really be pushed through, no matter what.
    Cheers,
    Riho Kroll

  • Photoshop CS6 Beta  |  Vector Shapes selection issue

    Hi there,
    The issue is related to selecting vector shapes. Below I'm describing the difference between Photoshop CS5 and Photoshop CS6 and showing the actual issue.
    Photoshop CS5
    Vector shape have color area and vector mask visible - http://screencast.com/t/hVB2H7ceqp
    Selecting the later do not affect the visibility of the actual shape - http://screencast.com/t/YkmJlsLRNX
    Selecting the vector mask gives us the visual representation that mask is selected - http://screencast.com/t/Iq4P9Qgp9
    Photoshop CS6 beta
    Vector shape have a single icon - http://screencast.com/t/ptBpMRYup
    When select the layer the vector mask is automatic selected too - http://screencast.com/t/dm1WjibiTZ
    The Problems
    This is frustrating because it is hard to set layer styles properly, the additional "stroke" that comes from the selected layer mask visuals mess the things up.
    Also the shortcut of coppying the vector mask is also different.
    I fould a way that solves the problem partially - http://screencast.com/t/CSKcTX3n, but after you select the actual vector path and points, it turns on automatically, which is frustrating again.
    Hey guys, you've done wonderful job with CS6 really. Congrats you are trying to incorporate real vector shapes in photoshop, but selection of the shapes in illustrator and photoshop just can't be the same.
    Please can you find a way to select vector shapes without selecting the actual vector mask too, this was perfectly developed in Photoshop CS5.
    Thanks!
    Regards,
    SK

    Thanks for the fast reply. All sorted out
    Jeanne Rubbo wrote:
    Ivan,
    Here's the post with instructions on moving or copying a shape path to another layer:
    http://forums.adobe.com/thread/979293
    As for the current selection behavior, thanks for the feedback. I can definitely see how that would be annoying, especially if you are used to the previous shape layer workflow. I can't promise any changes for this release, but I will pass it along to the rest of the team and we'll keep it in mind for future releases.
    Also, just to clarify some of the terminology, the path associated with the shape layer is called a shape path. It is no longer a separate mask, although it has much of the same behavior as the old content fill + vector mask shape layers.
    [quote]Layer selection should be just that. The layers.[/quote]
    I totally understand what you're saying, but in CS6 the path is part of the layer. It's not really comparable to any other layer types.
    Anyway, I'm not trying to dismiss your feedback or anything -- just trying to help explain what our thinking was behind the changes. Hopefully we'll be able to keep refining the behavior of the new features in the future.

Maybe you are looking for