It is currently Tue Feb 09, 2010 12:01 pm

Registration
Login Help

Advertise Here

[Plugin] Shape Bender Beta v0.51 UPDATED April 11, 2009

Moderators: Jim, ScottLininger

FAQRegisterLogin

[Plugin] Shape Bender Beta v0.51 UPDATED April 11, 2009

Postby Chris Fullmer on Wed Apr 08, 2009 7:31 pm

Name: Shape Bender
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.
0.2 Beta: 2009-04-09
  • 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.
0.25 Beta:: 2009-04-10
  • 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 :)
0.3 Beta: 2009-04-10
  • 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.
0.5 Beta:: 2009-04-11
  • 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
0.51 Beta:: 2009-04-11
  • 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
You do not have the required permissions to view the files attached to this post.
Your intelligence will never fully compensate for my stupidity.
Cal Poly Pomona - BS Landscape Architecture
UC Berkeley - Masters of Landscape Architecture
All my Plugins I've written
chrisfullmer.com - Art Blog
User avatar
Chris Fullmer
Global Moderator
 
Posts: 3765
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows Vista
SketchUp version: 7.1x

Re: [Plugin] Shape Bender Beta v0.1

Postby notareal on Wed Apr 08, 2009 7:36 pm

I'll certainly will keep eye on this.
notareal
 
Posts: 282
Joined: Tue Nov 13, 2007 9:54 pm
Location: Oulu, Finland
Operating system: Windows 7
SketchUp version: 7

Re: [Plugin] Shape Bender Beta v0.1

Postby Chris Fullmer on Wed Apr 08, 2009 7:39 pm

Here is the 2nd video, showing how to do a double bend. I didn't really explain it very well, so hopefully it makes sense what I did. It seems logical to me, but I've been playing with the thing for a while now.



Chris
Your intelligence will never fully compensate for my stupidity.
Cal Poly Pomona - BS Landscape Architecture
UC Berkeley - Masters of Landscape Architecture
All my Plugins I've written
chrisfullmer.com - Art Blog
User avatar
Chris Fullmer
Global Moderator
 
Posts: 3765
Joined: Wed Nov 21, 2007 3:21 am
Location: Davis, CA
Name: Chris Fullmer
Operating system: Windows Vista
SketchUp version: 7.1x

Re: [Plugin] Shape Bender Beta v0.1

Postby Daniel S on Wed Apr 08, 2009 8:40 pm

Chris:
I attach my first .skp test using shape bender. :ecstatic: :ecstatic:
Thank you!!!

Daniel S
You do not have the required permissions to view the files attached to this post.
User avatar
Daniel S
 
Posts: 276
Joined: Mon Nov 12, 2007 6:06 pm
Location: Mar del Plata, Buenos Aires, Argentina
Operating system: Windows 7
SketchUp version: SketchUp Pro 7.1

Re: [Plugin] Shape Bender Beta v0.1

Postby David_H on Wed Apr 08, 2009 8:50 pm

:thumb:
20090408134624_9s.jpg
You do not have the required permissions to view the files attached to this post.
"In the game of chess you can never let your opponent see your pieces" -- 25 Star General Zapp Brannigan
User avatar
David_H
 
Posts: 1095
Joined: Wed Nov 28, 2007 9:31 pm

Re: [Plugin] Shape Bender Beta v0.1

Postby Ben Ritter on Wed Apr 08, 2009 9:08 pm

Chris, I can hardly keep up with your wonderful scripts. Most importantly though, you are very much appreciated for your kindness to the SU community.
Ben Ritter
 
Posts: 102
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois
Operating system: Windows XP
SketchUp version: 6.4.112 Pro

Re: [Plugin] Shape Bender Beta v0.1

Postby Ben Ritter on Wed Apr 08, 2009 9:13 pm

Just have to thank you again.

Unbelievable!
Ben Ritter
 
Posts: 102
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois
Operating system: Windows XP
SketchUp version: 6.4.112 Pro

Re: [Plugin] Shape Bender Beta v0.1

Postby jmmad on Wed Apr 08, 2009 9:15 pm

Thxs Chris
Really usefull plugin.
you are getting really good at programing.
Get Upa !
User avatar
jmmad
 
Posts: 41
Joined: Sat Dec 27, 2008 8:54 pm
Location: Santiago, Chile
Operating system: Windows XP SP3
SketchUp version: SU 7

Re: [Plugin] Shape Bender Beta v0.1

Postby Pilou on Wed Apr 08, 2009 9:24 pm

Well well well :enlight: :thumb: :fro:
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
 
Posts: 3379
Joined: Wed Jan 23, 2008 10:33 pm

Re: [Plugin] Shape Bender Beta v0.1

Postby xrok1 on Wed Apr 08, 2009 10:41 pm

excellent thankyou. :berserk:

i guess i will make the first suggestion. when i hit the up arrow i think maybe just the path should reverse but the object should stay with the same offset on the same side of the curve. the way it is now the path is reversed but also the object switches from one side of the curve to the other. it makes it confusing it i want to reverse the path the way it is now, i think i would have to first move the object to the opposite side of the straight line then run the script??
Have i mentioned how much i love Twilight?
Thats http://www.Twilightrender.com baby!
Have i mentioned how great their support forum is?
User avatar
xrok1
 
Posts: 1114
Joined: Sat Feb 16, 2008 1:53 am
Location: Canada
Name: Rocky
Operating system: Window7
SketchUp version: SU7pro

Re: [Plugin] Shape Bender Beta v0.1

Postby TIG on Wed Apr 08, 2009 10:43 pm

Very, very good - well done.

After you bend the group's contents couldn't you re-group all of the bits and give this new group the same name/description/material/layer etc as the original ? That way it'd look like you "just moved and bent the original group"...

It's also quite easy to run it on a component-instance - simply make a group of the instance [ groupp=model.active_entities-add_group(instance) ], later you'll explode it, you might also want to mine through the group's entities for any other groups or instances and explode them back to basics. Now you'll have a group of the geometry just as you do with your 'group-only' version... After bending etc you can re-group bits as outlined above - you could even make that group back into a new component instance (ins=group.to_component) and give it the same defname(made- unique >>#2)/name/description/materials/layer etc as the original instance, so then it looks like you simply bent the instance and made it unique. See my ComponentInstance-add_entities.rb for some ideas on how easy it is to do that...

You've done the difficult geometry/transformation stuff etc - it just needs a little tidying up so that it appears to do its stuff effortlessly in a twinkling of an eye, as if by magic...

Well done...
TIG
User avatar
TIG
 
Posts: 2579
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Operating system: Vista
SketchUp version: Latest 7 Pro

Re: [Plugin] Shape Bender Beta v0.1

Postby xrok1 on Wed Apr 08, 2009 10:52 pm

1 more thing chris i was wondering if you couldn't group the line before exploding the group to be bent, then you could avoid the sticking while allowing the object to be placed directly in contact with the straight guide.
also i noticed that construction lines don't stick to geometry so maybe you could convert it to constuction lines as another option.
Have i mentioned how much i love Twilight?
Thats http://www.Twilightrender.com baby!
Have i mentioned how great their support forum is?
User avatar
xrok1
 
Posts: 1114
Joined: Sat Feb 16, 2008 1:53 am
Location: Canada
Name: Rocky
Operating system: Window7
SketchUp version: SU7pro

Re: [Plugin] Shape Bender Beta v0.1

Postby Fredo6 on Wed Apr 08, 2009 11:12 pm

Chris,

I am really impressed by what you achieved. This is a master transformation :sketchstatic:

I played a little bit with it, and I think you got the essentials. The rest is just about adjustments in UI and options. And indeed to extend it to embedded components.

Well done!

Fredo
User avatar
Fredo6
 
Posts: 762
Joined: Mon Nov 12, 2007 9:07 pm

Re: [Plugin] Shape Bender Beta v0.1

Postby utiler on Wed Apr 08, 2009 11:29 pm

Ditto from all said above, Chris!!!! This is fantasitc!!! :berserk:
Andrew
purpose/expression/purpose/....
User avatar
utiler
 
Posts: 721
Joined: Wed Nov 14, 2007 11:35 am
Location: East Coast, Australia
Name: Andrew Carter
Operating system: Windows XP SP3
SketchUp version: 7 Pro

Re: [Plugin] Shape Bender Beta v0.1

Postby Phil Rader, AIA on Wed Apr 08, 2009 11:40 pm

Supercalafragelisticexpialadocious

That's one cool plugin...you are making a legacy for you children to follow.

Maybe you should change your last name to "SU"llmer...hehe.
User avatar
Phil Rader, AIA
 
Posts: 385
Joined: Tue Nov 13, 2007 10:30 am
Location: Minneapolis, Minnesota
Name: Phil Rader
Operating system: Windows XP
SketchUp version: 7 something

SketchUcation One-Liner Adverts

by Ad Machine on 5 minutes ago

Concept 3D - Self Service Custom Modeling Shop
Ad Machine
Robot
 
Posts: 2009

Next

 

Advertise Here

Who is online

Users browsing this forum: No registered users and 3 guests