REQ: Entity info as toolbar (not a window) plugin
-
Hey.
I'd like to ask if it's possible to do a simple plugin, which can run windows (entity info, outliner, soften edges etc.), like toolbars. to make a similar workspace as in Photoshop for example. I especially need entity info window run as a toolbarThanks
Here I made one example in PS...
-
There was a guy who was working on something like that a year or two ago. But he only displayed screenshots. Never saw anything more from it.
It's technically plausible, but far from trivial and I don't think that many people got the know-how.Side note: why do you need it to be as a toolbar (docked window).
-
API access to native windows is limited.
If you are on a PC
Sketchup.send_action(21488)
will open the 'Entity Info' window if it's closed, and toggle its rolled-up state if it's open.
But that's about it !
You can do this for most of the windows.
CPhillips and/or JimFoltz wrote a PC only 'toggle-window' tool that rolls-up the Outliner if it's open and rolled-down... http://forums.sketchucation.com/viewtopic.php?p=123043#p123043 so you could look at that approach for your ideas too.
Docking them automatically is nigh on impossible - but they do remember their last stateMAC versions are not possible, as far as I know...
-
I don't need it vitally, of course, just to make similar workspace like in PS. Because Entity info is window, which I use very often and, like measurements, wnat to dock it not to interfer with the view.
BUT when it's that complicated as TIG's says let it be...
Anyway, thanks for reply.
-
Jim Foltz has a custom toolbars script that you might want to look at.
http://sketchuptips.blogspot.com/2008/06/custom-toolbars-release-08-06-01.html
It doesn't necessarily dock the window like you want, but it would allow you to open/close it with a toolbar icon. Jim's script doesn't actually include the Entity window, outliner, etc but it's pretty easy to create them. Look at the format of the Model Info button and use the sketchup.send_action # that TIG also mentioned. Other send_actions can be found here: http://code.google.com/apis/sketchup/docs/ourdoc/sketchup.html#send_action. I actually set up all my dialogs like this recently. I'm not sure yet if it's a huge time-saver or not, but we'll see.Another thing you could try is assigning a shortcut key to Window/HideDialogs. This will close all the dialogs that you currently have open. Repeating the shortcut will open them again.
Advertisement