Skip navigation
Currently Being Moderated

Script to rotate gradient 90 degrees?

Mar 2, 2012 9:19 AM

Tags: #gradient #rotate

Almost every time I add a linear gradient to an object I want to change the angle from 0 to 90 degrees.

 

Is there a script that I could use for this, so that I could assign a keyboard shortcut and press that instead of clicking the box & typing 90 all the time? (i.e. select an object, run a script & it would apply the standard black to white linear gradient at 90 degrees instead of 0.)

 
Replies
  • Currently Being Moderated
    Mar 2, 2012 10:25 AM   in reply to Juano Hunt

    what if you make your gradient the way you want it, then drag it to the Graphic styles palette? then everytime you need to use it, you select your object and click on it (the graphic style).

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 2, 2012 10:49 AM   in reply to Juano Hunt

    I must argee that it's hardly worth the bother… Only saving a click or two. Add that shortcuts are for actions… If an action calls a script it will get broken at app quit so you need to reset it… Sorry…

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 2, 2012 1:57 PM   in reply to Juano Hunt

    Carlos, said graphic styles palette not swatches did you try this also? To do such a small thing is not really making the most of scripting… Change a 1000 in a click sure then you got our attention…

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points