Reference a Shape Path as Text Path

Hi!
Is it possible to reference a shape path from a shape layer as the path for the text to follow?
regards
Henning

I think you simply want to use a shape layer's path as a path for your text to follow.
If there is no scaling applied to the shape layer then you can copy the path by setting a keyframe for it then start a mask on your text layer using the pen tool and putting the first point anywhere and then doing a paste. You can now reveal the text layer's properties and set the path options to the new path. This works best if you use the pen tool to draw your shape layer path, then add a text layer using New>Text Layer and typing the text. If you just click in the frame and start typing or you move or scale your shape layer you will run into position problems because the paths will not line up.
If you use the shape tools (rectangle, polygon, etc.,) you will have to convert the shape to a path before you start. You can do this by right clicking on the path. Here again, if your path is not in the center of the comp you'll have position problems that you will have to adjust. The most efficient workflow if you were using the shape tools would be to hold down the Alt/Option key before you start dragging out your shape so that it creates a bezier path instead of a shape. This would solve position problems. If you have already created the shape layer with a shape tool then center it in the comp and parent the shape layer to the text layer so you can reposition them both later.

Similar Messages

  • How to retrieve "KeyValue" from multiple Shape paths then "SetValue" to Mask path Keyframes?

    Hello AEScriptsComm.,..
    i have one question (hopefully the tutorer will answer soon), which is the goal and reason i'm learning ExtendScripts:
    I have a few dozen Adobe Illustrator, imported Shape Layers with paths "Created..from Vector Layers" in AEffects.
    In order to use a .jsxbin script to change every path to the same number of verticies for animating, i must 1st convert them to Keyframes on the same Mask Path property.
    1) i hoped to please be shown\sent an example showing how to,..
    a) Get\Retrieve "KeyValue" from multiple, single (Shape Layers):Outlines > Contents > Group > Path > Path as shown in screenshot "4-CreateShapeFromVecLyr2Outlines.JPG",
    and then,..
    b) "SetValue" from those paths into Mask > Mask Path keyframes also in screenshot "1-ExtendScript_ShapePathsTOMaskPathKeyframes.JPG"?
    Really appreciate any help soon as time allows,
    Jeff

    Hello Xavier,
                       esp. with my limited experience i can't determine how your concise script works.
    Because it 1st errors  esp. with undefines  i'm thinking at best its incomplete (or algorithm) to give me the gist and i'm to fill in the blanks, which i am doing with the sort of working code example pasted below.
    Its written with every  definition, declaration and initialization completed, so a novice like me can read the manuals, rev. eng. pertinant script(s), then with fragmented code and understanding quickly connecting to form a complete custom script, as we've all done.
    like this:
    var comp = app.project.activeItem:
    var layer  = comp.layers.addSolid([1,1,1,], layerName, comp.width, comp.height, 1.0, comp,duration);
    therefore,..
    var CompLayerSolid = app.project.activeItem.layers.addSolid([1,1,1,], layerName, comp.width, comp.height, 1.0, comp,duration);
    ..then with such direct access in other essentials, i can substitute compatible properties, methods,  parameters etc. and remaining code that affect the layer objects i need to control simultaneously. Also thereby learning more complex code quickly enough to use.
    Only, i hoped to save time here by those already familiar.
      But by comparison your script without declarations or many references in AE's CS6 Scripting Guide and online, i can't decipher or understand,
    although you wrote this more complete segment at CCow:
    "shapeLayer.content.addProperty("ADBE Vector Graphic - Fill");",
    ..in which is the addProperty i 1st looked for in your script after erroring with "ShapeLayer is undefined"
    But i could'nt find a ref. to either .content or content. anywhere in ExtendScript, nor "targetLayer.mask", and "targetLayer" i found once in ref. to ExtendScript as an AE layer name. So perhaps their your variables?, you see i can't determine or use.
    i don't know that was'nt meant, maybe a bit to tell me do my own research?,  no offence, can't confirm that without reply, hope you will, but my research is why i'm here and your probably advanced script could only help with your assistance.
    Thanks anyway,
    Cheers.
    function()
    var comp = app.project.activeItem;
    var masksLayer = comp.selectedLayers[0];
    var masksGroup = masksLayer.property("ADBE Mask Parade");
    app.beginUndoGroup(rd_MasksToShapesData.scriptName);
    // Create an empty shape lay
    // Get the mask layer's pixel aspect; if layer has no source, use comp's pixel aspect
    var pixelAspect = (masksLayer.source != null) ? masksLayer.source.pixelAspect : 1.0; //copixelAspect;
    // Iterate over the masks layer's masks, converting their paths to shape paths
    var mask, maskPath, vertices;
    for (var m=1; m<=masksGroup.numProperties; m++)
    var suffix = " Shapes";
    var shapeLayer = comp.layers.addShape();
    shapeLayer.name = masksLayer.name.substr(0,31-suffix.length) + suffix;
    shapeLayer.moveBefore(masksLayer);
    var shapeLayerContents = shapeLayer.property("ADBE Root Vectors Group");
    var shapeGroup = shapeLayerContents; //.addProperty("ADBE Vector Group");
    //shapeGroup.name = "Masks";
    var shapePathGroup, shapePath, shapePathData;
    // Get mask info
    mask = masksGroup.property(m);
    maskPath = mask.property("ADBE Mask Shape");
    // Create new shape path using mask info
    shapePathGroup = shapeGroup.addProperty("ADBE Vector Shape - Group");
    shapePathGroup.name = mask.name;
    shapePath = shapePathGroup.property("ADBE Vector Shape");
    shapePathData = new Shape();
    // ...adjust mask vertices (x axis) by pixel aspect
    vertices = new Array();
    for (var v=0; v<maskPath.value.vertices.length; v++){
    vertices[vertices.length] = [maskPath.value.vertices[v][0] * pixelAspect, maskPath.value.vertices[v][1]];
    shapePathData.vertices = vertices;
    shapePathData.inTangents = maskPath.value.inTangents;
    shapePathData.outTangents = maskPath.value.outTangents;
    shapePathData.closed = maskPath.value.closed;
    shapePath.setValue(shapePathData);
    shapeLayer.transform.anchorPoint.setValue(masksLayer.transform.anchorPoint.value);
    shapeLayer.transform.position.setValue(masksLayer.transform.position.value);
    shapeLayer.transform.scale.setValue(masksLayer.transform.scale.value);
    if (masksLayer.threeDLayer)
    shapeLayer.threeDLayer = true;
    shapeLayer.transform.xRotation.setValue(masksLayer.transform.xRotation.value);
    shapeLayer.transform.yRotation.setValue(masksLayer.transform.yRotation.value);
    shapeLayer.transform.zRotation.setValue(masksLayer.transform.zRotation.value);
    shapeLayer.transform.orientation.setValue(masksLayer.transform.orientation.value);
    else
    shapeLayer.transform.rotation.setValue(masksLayer.transform.rotation.value);
    shapeLayer.transform.opacity.setValue(masksLayer.transform.opacity.value);
    // Match the mask layer's transfor
    // Mute the mask layer
    masksLayer.enabled = false;
    app.endUndoGroup();

  • Can I isolate part of a shape path to simplify if?

    Hello, I want to simplify part of a complex shape.  Is it possible to isolate part of a shape path and simplify it, leaving the rest of the shape with the original number of anchor points? Thank you

    drive,
    Maybe redrawing it is the solution.
    Always keep (a copy of) the original artwork before you start destroying it, hidden or locked or elsewhere.
    You may plunge (deeper) into using the Pen Tool.
    In this case, you may (Smart Guides are your friends):
    0) Lock the path;
    1) ClickDrag from one of the end Anchor Points (Smart Guides say anchor when you are there), dragging the Handle in the direction of the path;
    2) ClickDrag from the other end Anchor Point, away from the path, dragging the Handle in the direction of the path.
    You may drag back and forth in 2), and you may switch to the Direct Selection Tool and ClickDrag either Anchor Point to adjust afterwards.
    This may be enough, depending on the shape, of course.

  • Convert Mask path to shape path?

    Can I convert a Mask path into a shape path in AECS4?
    I am running into a problem with resizing my layers - I am animating a signature, and part of it was done as a shape, part of it as a mask that 'reveals' a signature (someone else created the original) when I try to enlarge the whole thing, only the shape portion enlarges without artifacting (vector) the mask portion gets blocky and ugly if enlarged.

    The After Effects CC (12.2) update makes creating Bezier paths easier and more obvious.
    option for creating shape layers based on Bezier paths:
    When a shape tool (Rectangle, Rounded Rectangle, Polygon, Star, or Ellipse tool) is active, you can use the new Bezier Path option in the Tools panel to create a new shape based on a Bezier path, as opposed to the default of creating a new shape based on a parametric path. Holding the Alt (Windows) or Option (Mac OS) key while drawing a shape causes the opposite behavior—i.e., if the Bezier Path option is enabled, holding the Alt or Option key causes the shape tool to create a parametric path; if the Bezier Path option is disabled, holding the Alt or Option key causes the shape tool to create a Bezier path.
    command for converting a parametric shape layer path to a Bezier path:
    You can convert a parametric path to a Bezier path after the parametric path has already been created by context-clicking (right-clicking or Control-clicking on Mac OS) the property group for the parametric path (e.g., Rectangle Path 1) and choosing the Convert To Bezier Path command from the context menu. If the parametric path is animated (keyframed), the converted Bezier path is a static path based on the parametric path at the current time; keyframes are lost.
    IMPORTANT: When you use the Convert To Bezier Path command to convert a parametric shape path to a Bezier shape path, the Bezier path that is created does not animate well (i.e., interpolation between paths behaves strangely and unpredictably). This is related to path direction and how transformations are stored. For now, you should not use these converted paths for animated paths (interpolation between paths); but, if you do want to try, you may be able to work around the issues by reversing the path before conversion.

  • How to give the reference to the path  to copy the file to the server?

    hi all
    i am developing a page in jsp , in which i will open tiff image or autocad drawing,
    i get a file from one CMS, through JSP i login into CMS and get the file reference, till that i am successfull.
    but after that to open a file i have to copy that file into local pc or to the server(where my jsp page runs) and then try to open it.
    could any one know how to give the reference to the path if i have to copy the file to the server or my Local PC from CMS.
    Regards
    Oersla Afroze Ahmed

    hi Deepu,
    Use FM '/SAPDMC/LSM_F4_FRONTEND_FILE' for fetching the data from the application server path/presentation server path
    Regards,
    Santosh

  • Shape/Path - transform/convert -bug?

    I have noticed a few subtle UI changes in PShop CC -some of which seem like bugs. Here's one:
    When I apply "transform" to a newly created Elipse path (which has been pre-specified as a path), I get this prompt:
    "This operation will turn a live shape into a regular path. Continue?"
    But the elipse I have created is NOT a shape. The Path option has alrady been selected. Yes, this is a very minor quibble, but as a former beta (and alpha) tester, I tend to be compulsively thorough! OTOH, perhaps there is a user error on my part. I did double check that new paths created with elipse tool are spec'd as "paths".
    thanks

    There are some issues with the new shapes.  I'm not 100% sure on this but they now have "Live shapes" where you can set some of the shape/path properties like how rounded the curves are on a rounded rectangle.  So I guess the elipse also has some "Live" properties.  However, once you transform the shape/path, you lose the ability to edit those properties and the shape/path becomes a regualar shape/path.  I suppose it would be good for them to specify in the alert what exactly on what you working - path or shape.

  • Add an inertia script to mask/shape-path keyframes?

    anyone knows how to add an inertia script to mask/shape-path keyframes? OR a workaround that would yield similar results?
    thanks
    manojit

    Since no answer seems to be forthcoming would you recommend that this be a manual test?
    Thanks,
    Eric

  • Trying to fill a shape or change text colour-it is always grey instead of the colour I picked?

    I have been working on a file and whenever I have a couple of shapes and some text. When I try to change the fill of the shape or change the text colour it is always changing to grey. It will let me pick a colour, but the box at the bottom(foreground/background box) is always grey as well. Please help.

    THANK YOU SO MUCH BARBARA! I really appreciate you taking  the time to reply to my simple problem(eventhough at the time it was so frustrating). Thanks again. Leanne

  • I'm using pages.  How can I change the shape of a text box to arch?

    I'm using pages.  How can I change the shape of a text box to arch?

    You can't do that in Pages. If you need text in an arch use Art text 2 lite, free from the Mac AppStore.

  • How to convert from Finder Object reference to POSIX path

    I'm new to AppleScript. I'm super close to getting what I need done, but I've ran across a snag in the middle.
    The error I'm getting is Can’t make quoted form of POSIX path of item 1 of {«class docf» \"filename\" of «class cfol» \"foldername\" of «class cfol» \"Desktop\" of «class cfol» \"Username\" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\"} into type Unicode text. the problem area is highlighted and notated below. I've looked all around online but can't find what I need.
    Thanks in advance for any and all help!
    set text item delimiters to "."
    tell application "Finder"
      set theFilestoChoose to every item of (choose file with prompt "Please select the file(s) you would like to move and rename" with multiple selections allowed) as list
      display dialog "Would you like to move these files to an existing folder and then rename them, or create a new folder and then rename them?" buttons {"Move to an existing folder and rename", "Create a new folder and rename"}
      if result = {button returned:"Move to an existing folder and rename"} then
      set firstnewname to "Aauuttoommaattoorr"
      repeat with index from 1 to the count of theFilestoChoose
      set theFilesChosenbeingrenamedfirsttime to item index of theFilestoChoose
      set filenamecount to text items of (get name of theFilesChosenbeingrenamedfirsttime)
      if number of filenamecount is 1 then
      set fileextension to ""
      else
      set fileextension to "." & item -1 of filenamecount
      end if
      set the name of theFilesChosenbeingrenamedfirsttime to firstnewname & index & fileextension as string
      end repeat
      log theFilesChosenbeingrenamedfirsttime
      set choosingtheplacetomove to choose folder with prompt "Select the folder to move to"
      set thechosenfoldersname to name of folder choosingtheplacetomove -- sets the folder name as text
      set AppleScript's text item delimiters to {"-"}
      set Numberofthemonthatthebeginningofthefoldername to text item 1 of thechosenfoldersname as string -- for later to append the number back on without having to ask again!
      set shortenedname to text item 2 of thechosenfoldersname as string
      set the name of choosingtheplacetomove to shortenedname as string
      set thefolderstemporarynameaslocation to choosingtheplacetomove as string
      move theFilestoChoose to folder thefolderstemporarynameaslocation
      log theFilestoChoose
      set allfilesindestinationfolder to every file in choosingtheplacetomove as alias list --
      set aInitials to the text returned of (display dialog "Whose camera were this/these pictures taken on?" default answer "")
      set filteredList to my filterList(allfilesindestinationfolder, aInitials) as list
      log filteredList
      -- everything above this is correct so far and works perfect
      --TROUBLE SECTION BELOW
      set theSortedfilterList to (sort filteredList by creation date) -- something happens here with the theSortedfilterList that makes it unintelligible to convert to POSIX later. but I need the files in the order that this line puts them.
      log theSortedfilterList
      set timetorenamelasttime to theSortedfilterList
      set newbasename to shortenedname
      repeat with index from 1 to the count of timetorenamelasttime
      set theonefile to item index of timetorenamelasttime
      set theonefilenamecount to text items of (get name of theonetwothreefile)
      if number of theonefilenamecount is 1 then
      set fileextensionone to ""
      else
      set fileextensionone to "." & item -1 of theonefilenamecount
      end if
      tell application "System Events" to set CreaDate to creation date of file theonefile
      set CreaDate2 to CreaDate as text -- need to trim down to the first 10 characters and eliminate the "-"
      set AppleScript's text item delimiters to {""}
      set shorteneddatename to text items 1 thru 10 of CreaDate2 as string
      set the name of theonefile to shorteneddatename & {"-"} & newbasename & {"-"} & aInitials & {"-"} & index & fileextensionone as string
      end repeat
      --Trouble section above
      set the name of choosingtheplacetomove to Numberofthemonthatthebeginningofthefoldername & "-" & shortenedname as string -- returns the month prefix to the foldername
      else if result = {button returned:"Create a new folder and rename"} then
      set repeatConfirmation to true --Boolean to decided if script should be repeated; default is to repeat
      repeat while (repeatConfirmation = true) --Repeat if Any Tests Are Failed
      set thefirstquestion to choose from list {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} with title "Event Month Selection" with prompt "Select the month in which the event started. Select only one month:"
      set theMonthAnswer to result
      if theMonthAnswer = false then --"For historical reasons, choose from list is the only dialog command that returns a result (false) instead of signaling an error when the user presses the “Cancel” button."
      set repeatConfirmation to false
      set exitingeventmonth to display dialog ("You are exiting selecting the event month phase of the program. You will need to manually fix this decision") buttons {"OK"} with title "Exiting Event Month Selection"
      if button returned of exitingeventmonth = "OK" then
      set theMonthAnswer to ""
      end if
      else
      set confirmationanswer to display dialog "You selected " & theMonthAnswer & ", is this correct? " buttons {"Yes, that's correct.", "No, the picture(s) are from a different month."} with title "Confirm Event Month Selection"
      if button returned of confirmationanswer = "Yes, that's correct." then
      set repeatConfirmation to false
      else
      display dialog ("That's okay, you can select another again!") buttons {"OK"} with title "Return to Event Month Selection"
      end if
      end if
      end repeat
      log theMonthAnswer
      if theMonthAnswer = "" then
      set monthtonumber to "You have cancelled this action."
      log monthtonumber
      else if theMonthAnswer = {"January"} then
      set monthtonumber to "01"
      log monthtonumber
      else if theMonthAnswer = {"February"} then
      set monthtonumber to "02"
      log monthtonumber
      else if theMonthAnswer = {"March"} then
      set monthtonumber to "03"
      log monthtonumber
      else if theMonthAnswer = {"April"} then
      set monthtonumber to "04"
      log monthtonumber
      else if theMonthAnswer = {"May"} then
      set monthtonumber to "05"
      log monthtonumber
      else if theMonthAnswer = {"June"} then
      set monthtonumber to "06"
      log monthtonumber
      else if theMonthAnswer = {"July"} then
      set monthtonumber to "07"
      log monthtonumber
      else if theMonthAnswer = {"August"} then
      set monthtonumber to "08"
      log monthtonumber
      else if theMonthAnswer = {"September"} then
      set monthtonumber to "09"
      log monthtonumber
      else if theMonthAnswer = {"October"} then
      set monthtonumber to "10"
      log monthtonumber
      else if theMonthAnswer = {"November"} then
      set monthtonumber to "11"
      log monthtonumber
      else if theMonthAnswer = {"December"} then
      set monthtonumber to "12"
      log monthtonumber
      end if
      set theNameofFoldertoMake to text returned of (display dialog "Please enter the name of the new folder you are creating:" default answer "" with title "New Folder Name")
      set LocationOfNewFolder to choose folder with prompt "Choose the location of the new folder you are creating:"
      set theNewNameofFoldertoMake to monthtonumber & "-" & theNameofFoldertoMake
      set newfolderaction to make new folder at LocationOfNewFolder with properties {name:theNewNameofFoldertoMake}
      move theFilestoChoose to newfolderaction
      end if
    end tell
    --function
    on filterList(allfilesindestinationfolder, aInitials)
      set patterns to {aInitials as string, "Aauuttoommaattoorr"}
      set output to {}
      repeat with aFile in the allfilesindestinationfolder
      repeat with aPattern in patterns
      set filepath to aFile as string
      if filepath contains aPattern then
      set end of the output to aFile
      exit repeat
      end if
      end repeat
      end repeat
      return output
    end filterList

    Okay, so you wanted the debugging and error messages. Thank you for the coaching. Here is what I get from the following line:
    set theSortedfilterList to (sort filteredList by creation date)
    log theSortedfilterList
    Log returns:
    (*document file Aauuttoommaattoorr3.AVI of folder SnowDay of folder Desktop of folder Username of folder Users of startup disk, document file Aauuttoommaattoorr2.MOV of folder SnowDay of folder Desktop of folder Username of folder Users of startup disk, document file Aauuttoommaattoorr1.mov of folder SnowDay of folder Desktop of folder Username of folder Users of startup disk*)
    set pxFile to POSIX path of ((theSortedfilterList) as alias)
    Error: "Can’t make {«class docf» \"Aauuttoommaattoorr3.AVI\" of «class cfol» \"SnowDay\" of «class cfol» \"Desktop\" of «class cfol» \"Username\" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\", «class docf» \"Aauuttoommaattoorr2.MOV\" of «class cfol» \"SnowDay\" of «class cfol» \"Desktop\" of «class cfol» \" Username \" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\", «class docf» \"Aauuttoommaattoorr1.mov\" of «class cfol» \"SnowDay\" of «class cfol» \"Desktop\" of «class cfol» \" Username \" of «class cfol» \"Users\" of «class sdsk» of application \"Finder\"} into type alias." number -1700 from {«class docf» "Aauuttoommaattoorr3.AVI" of «class cfol» "SnowDay" of «class cfol» "Desktop" of «class cfol» "Username" of «class cfol» "Users" of «class sdsk», «class docf» "Aauuttoommaattoorr2.MOV" of «class cfol» "SnowDay" of «class cfol» "Desktop" of «class cfol» "Username" of «class cfol» "Users" of «class sdsk», «class docf» "Aauuttoommaattoorr1.mov" of «class cfol» "SnowDay" of «class cfol» "Desktop" of «class cfol» "Username" of «class cfol» "Users" of «class sdsk»} to alias
    That is why I labeled it with Finder Object reference won’t return POSIX path, because I tried what was suggested about using the POSIX path of line. I thought seeing the lines above and around it would help set the context.
    So I need those files, but I need them sorted by creation date so that they’re in that order for the next renaming step.

  • How To Edit A Shape Path

    A PS newbie here. I am trying to follow THIS TUTORIAL  and am getting hung up at this point where the author adds anchor points to a rounded rectangle:
    There is not a lot of explanation about how to do this in the tutorial. I know how to add anchor points when using the Pen Tool, but getting the shape to exhibit the path is eluding me.
    Can anyone help?

    Thanks for the answer.
    So I guess this is where I'm losing it because I've worked w. the Pen Tool a little in the past and using the Direct Selection Tool is exactly what I'd think would be called for. But it's not doing anything for me. I create a brand new layer w. a brand new rounded rectangle, hit Ctrl+A and make sure its the white arrow (not black), then click on the newly created solid black rounded rectangle. There isn't actually a "path" or an outline. And none ever appears no matter where I click.

  • Shape path iterator

    I have searched the forum to no avail, and have only found one tutorial that gets remotely close to what I am trying to do (i.e. http://www.developer.com/java/other/article.php/626101)
    Here's the jest:
    I've got a circle that has a linecoming out of it. Each line connects to the end point of the previous one, so if you will, think of this as one big connected path made of up lines of variable size.
    Currently my circle class extends Ellipse2D.Double and houses a global LinkedList that houses the lines. Everything works perfect, BUT NOW I need to figure out some way to have the circle move along this proverbial connected line. Here's what I have attempted in much simplified form:
    ListIterator lineIterator = currentCharacter.lineList.listIterator();
    while (lineIterator.hasNext())
      StraightLine currentLine = (StraightLine)lineIterator.next();
      // here it draws the line on the screen
      generalPath.append(currentLine, true);
    }I won't even both including my feable attempt at getting it to work with a PathIterator other than the following statement which instantiates the iterator:
    PathIterator path = generalPath.getPathIterator(null);Can someone please point me in the right direction. I would like for the circle to move position by position in the current segment before moving on to the next, AND not just move segment to segment. I'm having a real hard time understanding the PathIterator interface, so if anyone could give me a few pointers, I'd be much obliged.

    Here is an updated code sample for those who are helping. Unfortunatly, this sample gets the wrong locations it seems for the x and y iteration points:
                   while (it.hasNext())
                            StraightLine currentLine = (StraightLine)it.next();
                            // Gets the line's coordinates
                            int x1 = (int)currentLine.x1;
                            int x2 = (int)currentLine.x2;
                            int y1 = (int)currentLine.y1;
                            int y2 = (int)currentLine.y2;                                  
                            // Temp storage variables
                            int x = 0;
                            int y = 0;
                            // Calculates the slope
                            int numerator = (y2-y1);
                            int denominator = (x2-x1);
                            int slope = 0;
                            if (denominator != 0)
                                slope = ((y2-y1)/(x2-x1));
                            // Calculates the y-intercept
                            int b = y2 - (slope*x2);
                            Vector xCords = new Vector();
                            Vector yCords = new Vector();
                            // Gets the Y coordinates
                            if (x1 > x2)
                                for (int i=x1; i > x2; i--)
                                    y = (slope * i) + b;
                                    yCords.addElement(new Integer(y));
                            else if (x1 < x2)
                                for (int i=x1; i < x2; i++)
                                    y = (slope * i) + b;
                                    yCords.addElement(new Integer(y));                           
                            else
                                y = (slope) + b;
                                yCords.addElement(new Integer(y));
                            // Gets the X coordinates
                            if (y1 > y2)
                                for (int i=y1; i > y2; i--)
                                    x = (slope * i) + b;
                                    xCords.addElement(new Integer(x));
                            else if (y1 < y2)
                                for (int i=y1; i < y2; i++)
                                    x = (slope * i) + b;
                                    xCords.addElement(new Integer(x));                               
                            else
                                x = (slope) + b;
                                xCords.addElement(new Integer(x));
                            for (int i=0; (i < xCords.size()) && (i < yCords.size()); i++)
                                System.out.println(xCords.elementAt(i) + " " + yCords.elementAt(i));
                                selectedCharacter.x = Integer.parseInt(xCords.elementAt(i).toString());
                                selectedCharacter.y = Integer.parseInt(yCords.elementAt(i).toString());
                        }

  • Cutting a shapes' path from a shape group

    hi guys!
    Im quite a new user of illustrator so my problem may be noobish, but please be kind and help me.
    I want to make the A shape as if it was composed from the grouped hexagons from B. the hexagons from B are grouped and the shape from A was made from two elipses and function Minus Front prom pathfinder.
    I 've tryed all the functions from pathfinder in all ways but some don't give a result(I don't need explanation for this) and some do not work as I wish.
    I hope you understand what I want to create, and will help me. Thanks

    With the Clipping Mask selected go to Object>Clipping Mask>Edit Contents to be able to change the color of the masked objects.
    Here's what ti looks like with the Edit Contents

  • I can't change a shape or a text box fill color

    Hello community,
    I used to change the colors of my shapes and text boxes, but suddenly I can't do it anymore. I restarted my Mac 'cause it appeared to be something about the memory... but unsuccessfully...
    This is how I do: I select my shape, then go to the Graphic window, select Color Fill (then a white or a grey appears into my shape), and I double-click at the color menu to change it, but the shape remains the same (white or grey). I can choice between fill and no fill, but not change the color!
    Does it happened with anybody yet?
    Thanks a lot,
    Dea.

    Try quitting iWeb, deleting the preference file - Home Folder/Library/Preferences/com.apple.iWeb.plist,
    restarting your Mac and running Disk Utility to repair permissions.
    Deleting the .plist fixes a lot of things but I rarely have to do it as I restart a lot and run Disk Utility at least once a week.

  • Reference/repeat one piece of text to another

    Hi all
    I have a Pages document, filled with text in which I've added an invoice number e.g. 123456.
    This invoice number should be repeated in a table cell somewhere on the lower side of the page. I would like to see this done automatically, since the invoice number changes with every invoice, of course.
    Same story goes for the sum of a calculation. I'd like to see this particular outcome repeated once again in a cell (as described above).
    So, how do I go about? Any suggestions are more than welcome.
    Elzy

    PeterBreis0807 wrote:
    That can be done 2 ways which Yvan might better be able to instruct you.
    You perfectly know that I'm reluctant to repeat what is available in the User Guides.
    These resources where not written to fill our Hard Drives but to help us to find by ourselves the responses to our problems.
    What you wrote is the B. A. BA to tables/spreadsheets use.
    If someone is unable to discover and understand that from the Guides, better to use a pencil and a sheet of paper !
    Yvan KOENIG (from FRANCE mardi 16 juin 2009 13:56:14)

Maybe you are looking for

  • Paid Absence Quotas

    Hi Experts, I have a Requirement where we are trying to configure Paid TIme Off (PTO) for our employees. The Rules go this way. 1) Employee working for less than 5 yrs will get 5 weeks of PTO. 2) Employee after completion of % yrs will get 6 weeks of

  • Communication problem the web server extension (WGATE) failed to receive a

    Hi, When a user tries to access his timesheet he get the below error: <b>communication problem the web server extension (WGATE) failed to receive a response from the ITS web service</b> Only ONE user is getting this error. If everyone get\s the same

  • Table of Content with page number for entire pdf

    Hi We need to merge dynamic pdf with n number of static pdf. The output of the generated pdf has one of the page called Table Of Content with page number. For this we have created following process We created a form using Adobe livecycle form designe

  • Pass on Excise Duty

    Hello We are on Taxinj, we have made one PO with Excise Tax code, which is proposing some ED Now when we have recived the Invoice of vendor the Duty which he is passing is different for which system is proposing, as he is passing on the duty which he

  • Photosmart Prem c310 cannot install drivers.

    On install receive error message - Specified file not found. Running Windows 7 Home Prem 64 bit on ASUS UX21E Zenbook. Have tried numerous suggestions from other posts but to no avail. I see many similar posts but cannot find a solution. Help please.