Version: 0.2 Beta - Special release to Sketchucation only.
Description: This script will bend an existing group to match a curved line or series of connected lines.
Usage: Create a shape to bend. It must be a group or a component. Then select a single horizontal (red axis) line to use as the base for bending. Then select the curve that the shape will bend to match. Wait for it to think, then it will show a grid and preview of where your object is going to transform to. Press the UP Arrow key to toggle the orientation of the bend.
Requires: Progressbar.rb
SketchUp Compatibility: Its not compatible with version 5 or earlier.
History:
0.1 Beta: 2009-04-08
- Original release. I'm expecting plenty of bugs and feedback.
- Now will bend components (and still bends groups).
- Works when the shape to bend is comprised of components and groups by exploding all the groups and components inside.
- Does not explode the shape at any point (thats very good!)
- Works with scaled and/or rotated components
- Added line and arc highlighting to indicate when you move the mouse over an acceptable selection for the line or the arc
- Fixed a bug where selecting a closed loop would hang the plugin. Now it gives an error.
- Hit the down arrow key to change the start/end positions of the line. The line needs to have its start point "to the left" of the endpoint... If you notice weird behavior in how the shape is lining up to be bent, try hitting the down arrow key.
- Up arrow key AND Home hey toggle the curve. Downd arrow key AND End toggle the line now for added compatibility (for BTM

- Added a check to disable the up and down keys until the correct selections have been made.
- Added more checks to make sure that the line and curve being selected are acceptable selections. Pops up messageboxes letting you know if your selection was invalid.
- Now it leaves a component where the original group/component was located. It remains mostly untouched, but it might get a name change.
- Added a toolbar and icon
- Added new mouse pointers that sort of hint at what you should be trying to click on next
- Fixed the bug where the bent shape would not appear smoothed until you double clicked on it. Should look good now immediately after bending.
- Added extensions support so this plugin can be turned off through the extensions manager.
- Added Progressbar.rb support. It is now required. Get it at smustard.com
- Made the icon transparent
- Fixed a Mac toolbar visibility state remembering problem
The video is a little bit outdated. I need to remake it with the new features.
A new video Dec-03-2009
Here is a list of known bugs and planned improvements:
- The first and last angles of the bend curve are actually not accurate. Its not very noticeable, but it is inaccurate.
- It does not support components yet, groups only! - FIXED
- If you have scaled or rotated the group at all, you will need to explode it and regroup (or enter edit mode and group it all, then exit edit mode and explode the outer shell) before starting the script. - FIXED
- It explodes the bent shape instead of keeping it all grouped (its trickier to work around than it might seem!) - FIXED
- Every once in a while the grids don't display.
- Every once in a while I notice small deviations in the bending that are incorrect.
- I'd like to make the line and curve selections highlight when you move the mouse cursor over them, indicating that are acceptable selections if you click them. - FIXED
- Better curve selection flexibility - like select a curve in place, instead of having to copy it out free of connected geometry.
- I'm sure there's more things that I want to fix, but that's all I can think of right now. But I'm taking suggstions!
Thanks for checking it out, this is by far my most ambitious script yet. And if you're interested in this script, check back for updates regularly. There's a good chance I'll be changing things as the suggestions/comments roll in.
NEW! Shape bender is now available in French, thanks to c.plaissais (Christophe). Download it HERE!
Chris


