Following on from my previous Styles Favourites plugin, here's a new one that comes a little closer to what I originally intended to do.
It creates a toolbox and 'View' sub-menu (which can have shortcut keys assigned) that allow all the parameters of a model appearance to be quickly stored and recalled.
Unlike Styles and Scenes, this also includes things like the 'Hide rest of model' and 'Hide similar components' settings, fog settings, as well as all of the regular colours, shadows, x-ray, textures, default face colours etc.
V1.1 - 09 Dec 2012
Added features...
- Ability to automatically export a folder of images, one for each 'favourite'
- New options dialogue for export settings and fog/shadown recall settings
- Save/load complete 'favourites' sets and settings.
V1.1a - about 10mins after 1.1!
- Bugfix - loading previous settings stalled the plugin at startup (silly typo!)
DOWNLOAD: Trog Render Favourites 1_1a.rbz
Installation:
Download the .rbz file and then use the 'Plugins->Install->RBZ Package' menu item to navigate to the download file and let SU take care of everything.
--OR--
If you use an older version of SU without this feature...
Rename the download file by changing the extension from .rbz to .zip. You can now unzip the archive. Copy the 'Trog_Renders.rb' and 'Trog_Renders' folder directly into your Sketchup plugins folder.
Basic Usage:
- Set up your model with all of the style, shadow, hide options etc. that you would like to store.
- Click one of the 'Store Favourite' button on the toolbar (red), or choose a 'Render Favourites...->Store Favourite' item from the View menu.
- A pop-up will ask you for a name for the stored settings - this will appear as a reminder of the settings in the status bar or tooltips. You can also click the cancel button to abort the store operation.
- Set up favourite settings for as many of the 8 'slots' as you like.
- Now just click the 'Recall' buttons (green) or menu items to get the model looking just as you set it up previously.
Export images. The export item will create a sub-folder within the current model's directory called "<model name> Renders", and will then recall each 'favourite' in turn and export a bitmap image (empty 'slots' are skipped over). Image files are named after the model, suffixed with the favourite's index and name.
Set options. Select this to open an options input dialogue. This is where you set up the file-type, resolution etc. for exported files. You can also choose to export only a sub-set of the current favourites. There are also special options for the shadows and fog settings that allow only the on/off status to be recalled so that carefully set-up sun positions etc. are not disturbed.
Save/Load settings. With these you can keep HDD 'presets. The files will store a complete set of all current favourites, export settings and other options. Default file extension is ".rend".
Show current renders
Opens a pop-up box showing a list of currently stored 'favourites', and a complete list of all the currently visible rendering options.
About...
Shows a few details about the plugin and a 'Quick Start' user guide.
All of these operations can be assigned to shortcut keys for quick zipping between different view options. Unlike the earlier plugin it does not rely on you having specific Styles present in the current model.
Disclaimer
I've done my best, with the wonderful assistance of the forum Ruby gurus, to make this a reliable, bug-free plugin. But I'm still very new to making plugins.
You may use it free of charge any way you like, so long as the copyright notices remain intact, but I offer no warranty - it is provided 'as is' and with no guarantees!
Note also that this is untested on a Mac! I avoided using any PC specific API commands, so it should be OK, but I cannot say for sure.
Why?
When I made the previous 'Styles Chooser' plugin, several folks asked why, when we have Styles and Scenes, anyone would want such a plugin.
I think this has to do with my way of working - I don't do smart photo-realistic renders, or animations - I just need to make engineering designs as quickly as possible.
Styles and scenes are still useful to me, but...
- They cannot be assigned to shortcut keys - using the buttons and tabs just means less screenspace and more mousing!
- They do not change some of the settings in the way I like. For example when I go into X-Ray mode, I nearly always also want to hide 'rest of model' and 'other instances' so I don't get distracted by items in the background.
- Scenes, I prefer to think of only as 'Viewpoints' - very handy for storing a useful viewing angle, but I get easily confused when i start mixing up scenes that alter different sub-sets of parameters.
- Having an API to make the software work just the way I like is great, and I really wanted to get some practice with the API, but keep that separate from the scary geometry and maths needed for the tools that I'd like to make one day.
Many thanks to all the Ruby gurus who post here - this wouldn't have been possible without them. Particular thanks to TIG, who took the time to go through my previous code and put me straight on a few 'best practices'.