Filled area on left or right side of path – make path clockwise - reverse path

Hello,
for a script I'm writing, which will select path points at specific angles (all angles with less than 180°) I need to know, if the inner part of my shape (namely the filled area) is to the left or to the right regarding the direction the path is running.
In Illustrator I'm able to create shapes by drawing clockwise or counterclockwise. This is a problem, because the filled area sometimes is to the left and sometimes to the right. I know a script out there, which makes the path running the reverse direction. But it doesn't care if the path is already running clockwise or counterclockwise.
I'm looking for a script which allows me to destinctivly make a path running clockwise when it is counterclockwise so that the filled area is to the right of the path or leave it as it is.
I've been searching on google for ages already but could'nt find any script which handled this before.
thank you for any help
Benny

select a path before running
var idoc = app.activeDocument;
var sel = idoc.selection[0];
if (sel.polarity == 'PolarityValues.NEGATIVE')
    sel.polarity = PolarityValues.POSITIVE;
edit:
yeah, same as what elDudereno said

Similar Messages

  • Opened a .ai file, found that left and right side are cut off (landscape vs. regular the issue?)

    Information all in the title.  I open a .ai file and the left and right sides of the image are cut-off based on the "page" box

    Did you open it in a lower version?
    It looks like you opened the PDF part of the file instead of the AI part.

  • All of a sudden my screen has black bars on both the left and right sides; all of my folders are overlapping as well.  Anyone know how to fix this?

    All of a sudden my screen has black bars on both the left and right sides; all of my folders are overlapping as well.  Anyone know how to fix this?

    Did you try restart the Mac?

  • How to fill up my laptop screen with Firefox horizontally as it currently has a 3" margin on the left and right sides?tly has a

    I just purchased a 17.3" screened-laptop using MS Outlook and Explorer 9 Browser. I cannot use Firefox as my default Browser because I cannot get Firefox to fill up my screen.When I open up Firefox, it maintains a large 3" margin on the left and right sides which does not exist when I open up Explorer 9. Increasing the font size only increases the text size vertically but does nothing to decrease the margin size horizontally.

    You can use this extension to set a default font size and page zoom on web pages:
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/

  • Display resolution is different left and right sides

    Hi, my HP G42 laptop now has a different display resolution on the left and right sides. The left half seems to have less resolution than the right side, the right side looks like it's in HD, the left side looks washed out. I'm not sure if it is a hardware issue or a setting/software issue. The first time it appeared was after a windows 7 update was completed and installed, I'm not sure if that was just a coincidence. Any suggestions would be greatly appreciated. It works but is very annoying to look at.
    Thank you,
    Ray

    Hi Ray_M,
    Welcome to the HP Forums! I see that you are having a problem with two different resolutions on each half of your screen. The easiest way to determine where the problem lies is to connect it to an external monitor. If the image is normal then we know it is an issue with the display screen but if the issue occurs on the external monitor then we know it is a problem with the drivers or the video card itself.
    What is the product number for your g42? There are a number of different models in that series.
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • It it possible to have info on the left and right sides of iweb templates?

    When I look at my iweb website there is empty space on the left and right sides of my screen. I was wondering if this space could be used at all?

    Hi
    You can increase the width of your Page, go into Inspector, Page Tab. From here you can adjust the Content Width, which is the width of your page, the bits that you see on the left and right are fillers, for people who's browsers are set bigger than your site. You can change the color that shows by changing the Browser Background.
    In the good 'ole days, most people had screens that were only 800 W x 600 H, but these days most people have at least 1024 W x 768 H (some do, no doubt still have 800x600). So, 1024 is really the max width you can go, dont forget that you need to leave some space for the browser as well, and the scroll bars.
    But pages this big are wider than normal, the best thing to do is experiment and see what works for you.
    Will
    1GHz G4, 15" PowerBook, Airport Network, 1G iPod Mini   Mac OS X (10.4.6)   www.willg4pb.com for iWeb tips

  • How do I get page numbers on the left and right side of the page?

    I am finishing up a book in PAGES '08 on my Mac.
    How do I get page numbers on the left and right side of the page.
    I can get them on the page but I'd like them on the left and right sides.
    Evan

    If the icons are from dmg files that were used to install 3rd party apps like this one for VueScan
    Control (right) - click on the open dmg icon and select "Eject  xxxx" from the contextual window.
    Then find the actual dmg file associated with those icons
    and drag to the Trash in the Dock and empty.

  • Left and right side of screen does not register mouse clicks.

    The left and right side of my screen (when maximized) does not register a mouse click. I would estimate about 10 to 15 pixels in (top to bottom) before a button will register a click.
    If I work with in firefox not maximized everything works fine. As it stands I have had to add buttons to the left and right side of my Firefox navigation area to utilize the back and home button. I am also not able to use my scroll bar do to this situation with out connecting an external mouse.
    Operating system: Windows 7 Professional (64bit)
    Resolution 1280x800
    Computer: HP TouchSmart tm2 (1070us series)
    This laptop does have the touchpad type mouse, I do not think this is the problem though as it will work if firefox is not maximized.
    Assistance with this would be appreciated. I Love firefox but this is to much of an annoyance to deal with continually.

    Not sure if its ever overheated... I've never left it in a hot car if thats what you mean. Sometimes it gets very hot if I'm using EDGE for a while. I don't push hard which is why I don't think I caused it...
    I will bring it in this weekend and see what they say.
    I also think that the speakerphone sounds fuzzy and muffled a lot more than it did when I first bought it. So just another reason to bring it in.

  • I went to the full screen and don't like it and need to know how to get back to what I had. Also, is there a good way to set up bookmarks? Like in a column on the left or right side? Thank you.

    I went to the full screen and don't like it and want to get back to what I had. Also, is there a way to set up bookmarks so that all show in a column on the left or right side?

    Just press F11 on your keyboard to exit full screen mode.

  • IPad2: After upgrad to iOS 8, video output lost left and right side

    I have a cable for my iPad2, once plugged in the bottom slot, it outputs video to TV Component port and audio to my amplifier. It's been working for years. After iOS 8 upgrade, I notice the video output lost left and right side. It's like
    [before iOS 8]     Apple iPad is a wonderful product for me.
    [after upgrade]             iPad is a wonderful product
    The "Apple" on the left, and "for me." on the right of screen is gone in output.

    Change your Aspect Ratio on your TV to 16:9

  • Printout are printed to the right side of the paper

    Printout are printed to the right side of the paper
    all other settings are ok but the text is printed too much to the right side

    hi there,
    could you provide the community with a little more information to help narrow troubleshooting? Things like your printer model and your operating system help out a lot.
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Missing left and right sides of movies

    Why am I not seeing the full left and right sides of movies, converted using instant handbrake, during playback in itunes or on ipod touch and classic?

    On the iPod touch, to show the whole video, double touch the screen while it's playing.
    As for the other iPod and iTunes, I don't know.
    -Messymeese
    P.S.
    If the iPod touch thing that I said doesn't work, then I don't know what to do.
    Actually, did you happen to mess with the cropping settings while using hadbrake?

  • Left and Right Side buttons

    I just got a replacement 8330 because I dropped my previous one in a muddy puddle. I cannot remember how I originally re-programmed the left and right side buttons to run different applications than the default (camera, and voice dial). Can someone help me out?
    Solved!
    Go to Solution.

    Options > Screen/Keyboard > Left and Right Convenience keys.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • On start all of the folders on the desktop are moved to the right side of the screen and jumbled together, not as I had them organized on the left side of the screen. OS X v10.6.8

    sometimes on start all of the folders on the desktop are moved alphabetically to the right side of the screen, not as I had them organized on the screen before. also sometimes  my folders  when opened, move and resize themselves too...

    Start with one of these:

  • I have 9 tabs, but when I try to make a tab group, only the current page shows up as a thumbnail, not all the tabs. I can't get them to work for me. All the tabs are listed on the right side of the tab groups box. What am I doing wrong?

    There's no thumbnails to drag around except one on the left side of the page (the one that's open). The right side of the page lists every tab I have created.

    Perhaps your problem is that '''you must save your browsing history''' in order to use app-tabs that would apply to groups as well but I did not test.
    * http://img232.imageshack.us/img232/4928/clearcachew.png
    I would suggest that if you do not save that stuff in bookmarks, that you will probably have a serious problem soon and lose your tabs, so if you count on them you could lose them. They should stand up to repeated restarts but I would not count of them as app-tabs myself, for one thing it is new, the other is I have to frequently wipe them out and restart, because I actively open new content into them and go back to the beginning of the tab history, and sometimes I can't, and sometimes I lose them by accidentally closing them -- and I must be able to close them in all manners that I close other tabs or I wouldn't be using them.
    There are people who keep 200 tabs open through restarting, that is not for me, I try to clear out the tabs frequently.
    That is what app-tabs are for as opposed to home pages, but I did have a problem when I tested with 120 since as app-tabs only about 65 can be seen at once even though I did reduce the width of app-tabs to about 2/3 the size that they were.. Problem I had when I restarted was that the window enlarged a bit beyond the screen, and my tab counter disappeared until I reduced the count to about 65. I do not allow tabs to scroll so you probably wouldn't have that problem.
    I forgot to test home page with 60 tabs. I do have something set to 75 though have to check that. I tested with 60 pages as home page. Brought firefox down and backup with the 1 app-tab and 60 home pages the app-tab is the same size as the 60 normal tabs from home page.
    Never used group-tabs by choice, since they messed me up I stay clear of them, I don't like them or anything large panoramic type of large thumbnails.

Maybe you are looking for