|
Prev: ~~~~~~~~~~~~~~ SERVICE LEARNING ~~~~~~~~~~~~~~
Next: In the Bible: the foreign women are prostitutes, crooked, evil, unfaithful, robbers etc
From: jbl on 28 Dec 2009 08:28 On Sun, 27 Dec 2009 17:21:50 +0100, Mario <pascal(a)po.t-com.hr> wrote: >I use to F4 button, in CorelDraw, when I wish to zoom to object size. It >is very usefull because I don't need to see it. Does Illustrator have >something like that? If not how you zoom to object? I forgot to mention that; The default for this script is to fill the screen with the object, what ever that zoom level is. The script is written in javascript and can be modified to decrease the zoom level in this area of the script: //and scale to that proportion minus a little bit. activeDocument.views[0].zoom = zF *.85; // var criticalSize = 64; // how much zoom is too much? (6400 in this example...) var criticalSize = 18; // how much zoom is too much? (1800 in this example...) var adjustedScale = 18; //let's readjust based on your example to say... 1800% // var adjustedScale = 2.25; //let's readjust based on your example to say... 225% if(zF *.85 > criticalSize){ activeDocument.views[0].zoom = adjustedScale; } }else{ //alert("Please select an object on the page."); activeDocument.activeView.zoom=1; } } jbl
From: Mario on 28 Dec 2009 10:33
On 28.12.2009. 14:20, jbl wrote: > On Mon, 28 Dec 2009 10:25:08 +0100, Mario<pascal(a)po.t-com.hr> wrote: > >> On 28.12.2009. 0:26, steggy wrote: >>> Mario schreef: >>>> I use to F4 button, in CorelDraw, when I wish to zoom to object size. >>> >>> OK >>> >>> It >>>> is very usefull because I don't need to see it. >>> >> >> I mean that I don't need to have visual contact with the object which I >> need to zoom. Because I find shortcuts for zooming but it isn't proper >> exchange for Corel function. >> >> p.s. >> >> Sorry because my bad english > > I don't understand exactly what you are saying either but; > > To select an object either using the Direct Selection Tool or by > selecting the object in the layer palet and zoom in on the object to > fill the screen > use the script ZoomAndCenterSelection.js > (This may be the same script mentioned by LawnElf, but directly from > the script author) > > http://www.wundes.com/JS4AI/ZoomAndCenterSelection.js > > In Illustrator CS3, put the script in the folder, C:\Program > Files\Adobe\Adobe Illustrator > CS3\Presets\Scripts\ZoomAndCenterSelection.js. (Other version may vary > as to folder location) > > You can assign a shortcut key to this script by creating an Action and > then clicking the Actions palet menu choices (top right corner) and > then clicking the choice "Insert Menu Item", with the Insert Menu > Item" dialog box open, select Scripts from the File Menu, then select > the Zoom and Center Script. > > I also assign a shortcut key by creating an action that allows me to > select an object on the screen and to locate it in the Layer Palet > (the same as selecting Locate Object in the Layers palet) > > jbl Yes, that's it what I need. I create a new action, inserted menu item as you said, add F4 shortcut, but can't get the action. Script works fine from the Script menu. |