Vector path offset

I'm trying to make a vector path and it is constantly being offset by a factor of 4.17.  For example, if I make a line from point 100,100 to 200,200, it acutally makes the line from 417,417 to 834, 834.
I'm guessing this has something to do with the image resolution being 300 dpi versus 72 dpi, because 300/72 = 416.6.  However, I have no idea how to communicate to photoshop to actually make the line at 100,100 to 200,200.
Any ideas? Here's some example code I took from the scripting guide that shows what I'm doing:
function drawLine(doc, start, stop) {
var startPoint = new PathPointInfo();
startPoint.anchor = start;
startPoint.leftDirection = start;
startPoint.rightDirection = start;
startPoint.kind = PointKind.CORNERPOINT;
var stopPoint = new PathPointInfo();
stopPoint.anchor = stop;
stopPoint.leftDirection = stop;
stopPoint.rightDirection = stop;
stopPoint.kind = PointKind.CORNERPOINT;
var spi = new SubPathInfo();
spi.closed = false;
spi.operation = ShapeOperation.SHAPEXOR;
spi.entireSubPath = [startPoint, stopPoint];
var line = doc.pathItems.add("Line", [spi]);
line.strokePath(ToolType.PENCIL);
line.remove();
drawLine(app.activeDocument, [100,100], [200,200]);
thanks!!

function drawLine(doc, start, stop) {
var startPoint = new PathPointInfo();
startPoint.anchor = start;
startPoint.leftDirection = start;
startPoint.rightDirection = start;
startPoint.kind = PointKind.CORNERPOINT;
var stopPoint = new PathPointInfo();
stopPoint.anchor = stop;
stopPoint.leftDirection = stop;
stopPoint.rightDirection = stop;
stopPoint.kind = PointKind.CORNERPOINT;
var spi = new SubPathInfo();
spi.closed = false;
spi.operation = ShapeOperation.SHAPEXOR;
spi.entireSubPath = [startPoint, stopPoint];
var line = doc.pathItems.add("Line", [spi]);
line.strokePath(ToolType.PENCIL);
line.remove();
var orig_ruler_units = app.preferences.rulerUnits;
var res = app.activeDocument.resolution;
app.preferences.rulerUnits = Units.PIXELS; // Set the ruler units to PIXELS
app.activeDocument.resizeImage(app.activeDocument.width.value,app.activeDocument.height.value,72);
drawLine(app.activeDocument, [100,100], [200,200]);
app.preferences.rulerUnits = orig_ruler_units; // Reset units to original settings
app.activeDocument.resizeImage(app.activeDocument.width.value,app.activeDocument.height.value,res);

Similar Messages

  • I'm trying to take a vector object, say a flower, offset a path then get a vector path around the outside edge of the offset.  I take my flower, add a stroke, offset that stroke then select Add from Pathfinder which gives me visually the exact offset peri

    I'm trying to take a vector object, say a flower, offset a path then get an independent vector path around the outside edge of the offset. 
    I take my flower, add a stroke, offset that stroke, then select Add from Pathfinder which gives me visually the exact offset perimeter shape I'm looking for.  The problem is that it isn't a vector path in it's own right.  Is there a way to get Illustrator to recognize the offset stroke as it's own vector path? 
    Please forgive me if my terminology is off as I'm not a formally trained graphic artist.

  • How can I create a vector path boundary around an image?

    I have enclosed a screenshot of an image created in Photoshop CS4 with a wacom. It shows a grey boundary stroke around the entire image which was created with edit/stroke, then color and width of stroke selected.
    What I want to do is to bring this image into Illustrator CS4 and create a vector path boundary aroun d the image in the same way as the stroke boundary in Photoshop. But I dont know how to do thatx except by doing it manually with the pen tool.
    Does anyone know if it is possible to create a vector path around the image in a similar way that I created the stroke line around the image in Photoshop?
    I need the vector path to make a cutting line for a laser cutter, which works with vector files.
    Thanks for any advice about this.

    Not only should you draw the cut path deliberately with the Pen Tool, but that entire illustration should have been drawn as vector paths to begin with. In fact, if it were me, I would do that now anyway. It's nicely done, but illustrations like that are much more versatile and valuable as a vector drawings, because they are infinitely scaleable withou degradation of sharpness.
    Had it been drawn as vector paths, generating the outset cut line could be semi-automated by merging a copy of all the paths and then just outsetting the resulting path.
    Vector illustrations like that, consisting of just a few colored fills and strokes, can be entirely cut and assembled from sign vinyl at any scale, rather than resorting to merely printing the artwork and then cutting around it.
    Edits (recoloring, reshaping) can be easily made to vector paths without degradation, because each path is a separate object.
    And whenever you do need a raster image, a raster image suitable for any purpose can be exported from a vector drawing at any time. Each such rasterization is pristine, because no re-rasterization is involved.
    Not meaning to preach you a sermon; it just seems so many visitors here who have only used raster imaging don't even understand the reasons why vector drawing exists. This kind of graphic begs to be created as vector paths, and is also the very kind which would be ideal for vector-drawing beginners to start with. So it's just a good case-in-point.
    JET

  • Illustrator 6.0 vector paths, when opened in Illustrator CC are now all broken into segments?

    Illustrator 6.0 vector paths, when opened in Illustrator CC are now all broken into segments at key points (ie. a circle, has become a series of 4 quarter circle lines. Has anyone experienced this and is there a quick fix? I still have both Illustrator versions installed and can go back to use the original files, however I'd like to upgrade smoothly without having to redo all my vectors!    

    That is strange sounds like what happens when you open a die built in autocad, in illustrator. What happens if you paste a CS6 path into CC?

  • Vector path manipulation in CS6

    Evening all,
    Back in Photoshop CS3 (I skipped from CS3 to CS6, so no idea if you could do this in any other versions) if you CTRL clicked on a vector path between two anchor points, you could change the 'guidelines' extending from the anchor point either side of the line, and it would keep the lines at the same angle. However in CS6, when you do this it changes the angle of both of the lines. Is there a way to do it as it was done in CS3 ?
    Sorry if I explained this badly, if you need some better explanation please let me know and I'll get an image to show what I mean
    Many thanks
    -Josh

    In the Options bar, enable "Constrain Path Dragging".

  • Photoshop cs 6 vector path: unintentional duplications

    When trying to change or manipulate a vector path (e.g. deleting, moving a point) the complete vector duplicates unintendedly.
    I worked with CS4 before and never had this problem.

    It happens with every tool: see the screenshots:

  • Vector path tool question

    Is there a way to make an irregular shape with multiple
    vector path lines and then fill this shape with color? I tried this
    with a shape like a box but with curves and straight lines but it
    won't fill correctly. I did join the multiple lines together but
    the curved lines fill independently. I know there has got to be a
    way to do this, but can't figure it out. I did try different things
    with combining/altering the path but was unsuccessful. If there is
    a way to fill this shape with color as a single object, can effects
    be used such as bevel/emboss on this shape? Any help would be
    greatly appreciated.

    I suggest you view this tutorial. It will show you the basics
    of the Pen
    Tool.
    http://www.communitymx.com/abstract.cfm?cid=D01EF
    In order to join to paths you have to use the Subselect Tool,
    select two
    points you want to join then go to Modify > Combine >
    Join.
    You can also use the Subselect Tool to drag an end point
    close to the
    other end point. As you get close it will snap into place.
    The Subselect Tool is the white looking arrow to the right of
    the black
    one at the top of the Tools Panel.
    alex
    P-C-Surgeonz wrote:
    > I thought the 'Join' or 'Union' was closing the path. Is
    there a different
    > procedure for closing the path? I do notice that if I
    zoom in to approx. 800%,
    > the ends of the pen lines are close to each other but
    are not exact. Is there a
    > way to connect the multiple connection lines. When I
    originally joined/unioned
    > these multiple lines, they did become one when selected,
    but maybe this still
    > isn't a closed path.
    >

  • Slow, Blinking, Sluggish, Vector Path Tool

    I am having problems with very sluggish tool performance in
    both Fireworks and Flash drawing tools. I shyed away from
    Macromedia applications in the past due to their sluggish, awkward
    interface. I don't think any of that has improved.
    So someone give me a clue as to sluggish tool peformance. For
    instance, when using the Vector Path tool, it feels heavy and
    sluggish and very innacurate and takes forever to update a stroke
    let alone it blinks on and off as soon as I select the tool.

    "Montemedia" <[email protected]> wrote in
    message
    news:fcp6ra$7sa$[email protected]..
    |
    quote:
    Originally posted by:
    Newsgroup User
    | PC or Mac? How much memory? I don't have any such problems
    on my old PC
    with
    | 2gb of RAM. I have experienced a little loss in performance
    since
    upgrading
    | to CS3, but I'm not surprised, and nothing like you
    describe.
    |
    | Peter
    | ________________________
    | .... I have PC with an Intel Core Duo E6700 processor, 4GB
    of 800MHz DDR2
    RAM,
    | 800GB raid-0 SATA drive configuration with 2 250GB SATA
    scratch disks, and
    a
    | GeForce 8800GTS PCIe 320MB DDR3 video ~~~
    Ok so it's not your PC :-)
    |
    | ... *** Here is what I've discovered as to being a solution
    to my
    sluggish
    | Macromedia/Adobe application performance in Windows Vista:
    Turn off the
    "Vista
    | Aero" visual color schemes and use "Windows Standard"
    settings. It's that
    | simple. ***
    The Vista Aero problem is a known issue.
    |
    | Thank you and good night!
    My pleasure, sweet dreams
    Peter

  • Vector path stroke

    I have a path drawn which I stroked. However, this stroke is raster and I really need a vector line to be drawn instead. How can I create a vector path stroke?

    With your Path active, add a Solid Color Fill Layer, and add a Layer Style with Stroke enabled and the Fill set to zero.
    Note that this will only work if you are dealing with closed paths, like an elipse or recangle. If the paths are open, Layer Styles Stroke acts as if they are closed. If your paths are open, you really need Illustrator to keep the strokes vector.

  • Vector path edit window won't open

    Hello,
    A bit earlier today, I was able to select a vector path, click the options arrow, select Edit path... and get a dialog of options to choose (Ink percent, Spacing, etc.). Now I can do all those things still, but the dialog of path edit options does not appear.
    Also, earlier today, I saved a set of path options I had chosen, but it never appeared among the paths available to choose. When I went through the process again and tried to save, I was asked if I wanted to overwrite what I saved earlier. So it did save earlier, but never showed up for me to choose.
    Thanks in advance for your help!

    Be careful of your terminology; I think you're talking about strokes and brush options, not vector paths.
    The Edit Strokes panel (a.k.a. Advanced stroke options) is available from within the Properties panel in two locations. The most direct route is the Edit Stroke button, but this doesn't appear for all selections or tools—for example, you'll find it when either the Ellipse or Polygon tools are selected, but not when the Rectangle tool is selected. The other, indirect route is through the Stroke presets/categories menu, at the bottom of the menu, under Stroke Options. In the resulting panel, you'll see an "Advanced" button that leads to the same Edit Stokes panel.
    Once you've saved a custom stroke, it should appear within the Stroke presets/categories menu in the Properties panel, assuming a vector tool (or vector object on the canvas) has been selected. (That said, I've never actually saved a custom stroke myself.) Try looking for it under whatever category the original stroke belonged to—e.g., Basic, Airbrush, Calligraphy, Charcoal, etc.

  • Single vector path possible?

    Is it possible for Ideas to create a single vector path? Even when I use the smallest brush size (0.5) when I import into Illustrator the path is more like an ellipse. I'd like to be able to trace an image and have my tracing represent a single individual vector path.
    Am I missing something or is this not yet possible with ideas? If not, anyone else have any suggestions for an iPad app that will let me trace images? Thanks.

    Ideas is designed to create closed vector paths. If you are familiar with Illustrator, it is analogous to using the "Blob Brush" tool. There is currently no way to create an open vector path using Ideas.
    Hope that helps,
    Frank
    Ideas Engineering

  • How do you offset path like the Object/path/offset path?

    I can't seem to find this in the Action suite, is there an easy way to do this or do I need to use TransformArt?

    Great! I am almost there, thank you Mr. Peterson.
    Please help me with 1 more thing, I need to get the action name for PlayActionEvent.
    I tried "OffsetPath", "Offset Path", "adobe_offsetPath" and they don't work.
    Here is the file with decoded stuffs:
    /version 2
    /name [ 8
        436c697070696e67
    /isOpen 1
    /actionCount 1
    /action-1 {
        /name [ 10
            4f 66 66 73 65 74 50 61 74 68 "OffsetPath"
        /keyIndex 0
        /colorIndex 0
        /isOpen 1
        /eventCount 1
        /event-1 {
            /internalName (ai_plugin_offset)
            /localizedName [ 11
                4f 66 66 73 65 74 20 50 61 74 68 "Offset Path"
            /isOpen 0
            /isOn 1
            /hasDialog 1
            /showDialog 0
            /parameterCount 3
            /parameter-1 {
                /key 1868985204 = 6F 66 73 74 'ofst'
                /showInPalette -1
                /type (unit real)
                /value 2.1599998474
                /unit 5 92 47 62 68
            /parameter-2 {
                /key 1835627634 = 6D 69 74 72 'mitr'
                /showInPalette -1
                /type (real)
                /value 4.0
            /parameter-3 {
                /key 1785623664 = 6a 6e 74 70 'jntp'
                /showInPalette -1
                /type (enumerated)
                /name [ 5
                    4d 69 74 65 72 "Miter"
                /value 2

  • Question about selecting vector paths in Photoshop

    Hi, I have a question about selecting path points in photoshop.
    This is the setup. I have a vector shape layer (the redi circle). but that's placed inside a group with a vector mask (the black pentagon). What I want to do is select parts of the red circle using click and drag) so I can modify portions of the circle).
    This is Photoshop's behavior as I've noticed it. Photoshop likes to select the shapes for you, and will target layers on its own when you use the Path Selection Tool. It tends to want to select the top most shape. If I target the shape layer first, I can use the Direct Selection tool to select individual points. I can add selected points bu shift+clicking.This is all well and good.
    If I try to select multiple points using click+drag though, it gets a bit weird.
    If I try to click+drag to select multiple points from within the vector mask (from the black), it will fail and select the vector mask. If i try to click+drag to select multiple points from outside the vector mask (from the white), then it will allow me to select points from my vector shape like i intended.
    I could also shift click to hide the vector mask, and it will work the way i want.
    Is there an easy way to tell photoshop not to auto target vector shapes? or a better way to select paths inside vector masks?
    Thanx for any input

    canvai wrote:
    Is there an easy way to tell photoshop not to auto target vector shapes? or a better way to select paths inside vector masks?
    Sure.
    Simply click once on the vector mask for the shape layer (red circle) to highlight that vector mask in the Layers Panel. Then when you click-drag the anchors of that path will be selected, not the group's path.
    If you have no mask highlighted, Photoshop assumes it should select the first path it comes in contact with.

  • Corners and overlaps in vector paths are transparent upon export

    Hello,
    I am tasked with using Illustrator and Flash to develop skins for Flex (CS3). I have managed to work through the process, but the when the paths on custom graphics are exported into Flex, corners and points of intersection where two paths or parts of the same path cross are transparent. For example, if I drew an X, there would be a clear spot at the intersection. If I drew a O, there would be a little clear spot where the points on the path overlapped. If I drew a Z, the corners on the letter will have clear spots .
    The problem occurs in Flex, and then also persists in the various browsers. It happens on my Apple and on my Mac.
    How do I prevent this? Is there some transformation I can do in Illustrator to prevent this?
    Thank you for your help.

    You can try a few things.
    Use the 3-way color corrector in FCP to bring the white levels under 90%.
    If all your text is on the same horizontal plane make sure it's on an even number
    Add a .25 blur to the graphics
    use the de-interlace filter

  • Connecting a mirrored vector path

    Hello,
    I started using illustrator yesterday and so far I'm loving it!!
    I have two questions though, that I can't seem to solve on my own. While drawing the path of half a diamond on top of an image I scanned earlier, I couldnt figure out, how to join the two mirrored paths that I have created in the middle. Ctrl Shift Alt J wouldn't work.
    Secondly I would like to know how I can remove these little corners indicated by the blue arrows in the picture that are not supposed to be there.
    I would be very grateful for any tips, how to solve these Issues.
    Thank you in advance!!

    ok: workflow is key here but to help u at bat:
    I can remove these little corners indicated by the blue arrows
    try changing the stroke cap to projecting.
    While drawing the path of half a diamond on top of an image I scanned earlier, I couldnt figure out, how to join the two mirrored paths
    depends on how its constructed and how u are reflecting it.
    u can do it manualy, r click reflect, or use a graphic style in your default styles called live reflect x.
    G

Maybe you are looking for

  • MDB Listening to remote queue

              Hi,           Could any of you please let me know what needs to be done to configure my MDB           to listen to a remote queue in a different domain (also using wls 7.0).           I tried adding the <provider-url> element in the weblogi

  • PanelGrid component binding problem

    I have a panelGrid that is bound to an object in my backing bean. When the page loads the panelGrid is empty. When the user clicks on a button it is suppose to populate the panelGrid. But the panelGrid doesn't render after clicking the button. Here i

  • How long can I leave an iPad on?

    I'm tired of looking for a decent digital photo frame to hang on my wall. So I was thinking about turning a few of my old iPads into photo frames and essentially leaving them on all the time. Is it ok to leave the iPad display on all the time? Is it

  • Creating Zip  of multiple zip files without storing at perticular location

    Hi, I am having any number of files in folder called as OUTPUTFILES.And i want to create a zip file of that files e.g.If there are 3 files in outputfolder namly A,B,C..THen zips are as follows A.zip B.zip C.zip and after that i want one zipfile of th

  • FF: Unable to view Reports in Virsa Toolbox.

    HI All, I am using FireFighter Version 5.2 SP5 Patch 1 and facing issues in the Firefighter Tool box. Also, I have VIRSANH  add-on release 520_700 with Level 010 in the backend. When i enter transaction "/n/virsa/vfat" and click on the Virsa Toolbox