Bend it like Fullmer: All about Shape Bender

Sunday, April 25, 2010

Ever wish that you could warp and bend stuff more easily in SketchUp? You can -- with the right plug-in. Ruby scripts for deforming your geometry abound; I wrote about FredoScale just recently. This time, I thought I'd mention Shape Bender by Chris Fullmer. You'll wonder how you got along without it.

What Shape Bender does is actually pretty straightforward: It takes any 3D object in your model and bends/stretches it along a pre-drawn path that you select. Simple, but unbelievably powerful. Take a look at the following examples.

The straight, blue text is what I started with. The bent, yellow text is the result of my Shape Bender operation.

The bending path (above left) is a 3D spiral.

The possibilities are endless.

Shape Bender should be called Mind Bender. For a longtime SketchUpper like me, it's like my birthday and Christmas all rolled into one. But enough giddiness; here are the facts:

  • Visit the Shape Bender thread at SketchUcation to learn about and download the script for free
  • SB works on PCs and Macs, just like most SketchUp Ruby scripts
  • SB is currently available with English and French UI (user interface)
  • After you download the script, put both the Ruby file (it ends in “.rb”) and the folder in your SketchUp 7 Plugins folder

Here's my best attempt at a basic, getting-started set of Shape Bender instructions:

  1. Make sure the thing you want to bend is either a group or a component.
  2. Rotate it (if necessary) so it's lined up lengthwise along the red axis.
  3. Use the Line tool to draw a straight edge parallel to the length of the thing you want to bend. Make sure it's parallel to the red axis.
  4. Draw a curved edge that represents the bending path (that's my term, not Chris') for your forthcoming bent shape.
  5. Select the group or component to be bent.
  6. Choose Plugins > Chris Fullmer Tools > Shape Bender to activate the tool.
  7. Click once on the straight edge you drew in Step 3 (make sure it's highlighted before you click on it).
  8. Click once on the curve you created in Step 4.
  9. Wait for SketchUp to think. Depending on how zippy your computer is, maybe get some coffee.
  10. Take a look at the green preview to see what you're about to get. If it looks backwards, press the Up Arrow key on your keyboard to reverse the direction of the bending path. You can also press the Down Arrow key to reverse the direction of the straight edge you created in Step 3.
  11. When the preview looks the way you want it to, press Enter to finish the transformation.
Chris' video (below) does a great job of explaining the process:



Having spent some time with Shape Bender, here are some things I think it's helpful to know:

Location matters. Pay attention to the location of the straight, red axis-aligned edge you draw relative to the thing you're planning to bend. It basically acts as the "axis of bendation" (again, not Chris' term) for the operation. If you want your bent object's center line to follow the bending path precisely, draw the straight edge right through the center of the original object. Take a look at the following images to see what I'm talking about:

Note the different position of the red line relative to the original blue cone in each of the above three examples. Where you position the straight line has an effect on the result of your bending operation.

The length of your straight line matters. I’m referring to the one you drew in Step 3, above. Its length affects how the thing you’re trying to bend stretches (or squishes) when you bend it. If you want it to stretch, make your straight line shorter than your curved one. If you want it to squish, reverse that. To keep things from stretching or squishing, make both lines about the same length.

Beginnings and endings matter. Draw your curved bending path so its beginning and end points are at different places along the red axis. Otherwise, Shape Bender gets confused and freaks out.

Weld your bending path. The edge you designate as a bending path needs to be continuous; it can't be made up of more than one segment. To glue multiple segments together, use the Weld script. It's available for free at Smustard.com.

Congratulations on a great script, Chris. The SketchUp world owes you one.

Posted by Aidan Chopra, Product Evangelist

0 comments:

Post a Comment

please put you comment to tips and tricks 2013