GJ Posted February 15, 2006 Share Posted February 15, 2006 Is it possible to save what would normally be a menu script as a tool that works with one click on the tool icon? Let me 'splain: I would like to create a tool palette that is essentially a visibilty strip that toggles various Layer/Class/Pref settings with one click. I have been able to save a script as a tool, but it requires a click on the drawing to activate. Is it possible to circumvent this?, or to add a random pick in the script ? Thanks, Gary Quote Link to comment
mike m oz Posted February 16, 2006 Share Posted February 16, 2006 GJ Have you checked out what is available at VectorDepot (Look in both the Plug-ins and Market sections): http://www.vectordepot.com/ Also have a look at Vector Plug-ins VP Tools (It includes some Layer and Class switching tools): http://www.vectorplugins.com/vptools/index.html Quote Link to comment
Jonathan Pickup Posted February 16, 2006 Share Posted February 16, 2006 the other way is to make the tool into a command, like a menu command. Then add it to your right mouse click. Right mouse click, choose preference script and presto! Quote Link to comment
GJ Posted February 16, 2006 Author Share Posted February 16, 2006 I've worked with both of those methods. I'm trying to avoid a context menu item (I have quite a large context menu now) The vectorplugins layer manager is close to what I had in mind, however it still requires a click in the drawing. There are two functions in the script that I do not understand: SetTool(-128); and SetCursor(ArrowC); Neither of those functions are in the VW12 script reference. Maybe that was a solution to this problem prior to VW12. Thanks, Gary Quote Link to comment
GJ Posted February 16, 2006 Author Share Posted February 16, 2006 Sorry, I found SetTool and SetCursor, but I couldn't find the tool ID for -128 Quote Link to comment
ccroft Posted February 16, 2006 Share Posted February 16, 2006 There's no way to make a vectorscript behave in this way, at least not at the vectorscript level. In most drawing programs a tool is for working in the drawing window.What you are doing is more of a command. I often make this type of script into a menu command with keyboard shortcut. As funky as it seems, double clicking a script palette command is actually pretty close. The millisecond it takes for the second click isn't that big a deal. The script palette becomes portable thru the use of a template, and is a kind of tool palette in it's own way. I run some commands this way as well. Quote Link to comment
GJ Posted February 16, 2006 Author Share Posted February 16, 2006 Thanks ccroft, I'm starting to realize that this may be impossible. I got the idea while playing around with a toggle palettes and full screen script that seemed alot like the full view buttons at the bottom of the Photoshop tool palette. Quote Link to comment
Alexandre Villares Posted February 17, 2006 Share Posted February 17, 2006 Hi GJ, I suffered from the same frustration. I've made the tools at the VectorPlug-ins site, the layer changing ones need the dreaded 'click at the drawing'. SDK programming can do it, as you will see in the free (but Mac only) tools by Manuel Paredes at www.vectorbits.com regards, Alexandre Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.