[Plugin] Shape Bender Beta v0.55 UPDATED April 21, 2010

[Plugin] Shape Bender Beta v0.55 UPDATED April 21, 2010

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

Name: Shape Bender
Version: 0.55 Beta
Description: This script will bend an existing group to match a curved line or series of connected lines.
Usage: See videos below :)
Requires: Progressbar.rb
SketchUp Compatibility: Its not compatible with version 5 or earlier.

**Download Shape Bender**


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.
  • 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.

The video is a little bit outdated. I need to remake it with the new features.


Video #2


A new video Dec-03-2009


Thanks for checking it out!

Also, please check out my newest script Repeat Copy at smustard.com.

NEW! Shape bender en Francais, thanks to c.plaissais (Christophe). Download it HERE!

Chris

Requires: Progressbar.rb

**Download Shape Bender**

5856,1184
6
Last edited by Chris Fullmer on Sun Apr 12, 2009 6:56 am, edited 9 times in total.
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Shape Bender Beta v0.1

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

I'll certainly will keep eye on this.
0
Welcome to try Thea Render, Thea support | kerkythea.net -team member

notareal 
Thea Render Support
Thea Render Support
 

Re: [Plugin] Shape Bender Beta v0.1

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

I add the 2nd video showing how to do a double bend to the first post. 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
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Shape Bender Beta v0.1

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

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

Daniel S
0

Daniel S 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby david_h » Wed Apr 08, 2009 8:50 pm

:thumb:
20090408134624_9s.jpg
0
If I make it look easy. . .rest assured--it probably is.
User avatar
david_h 
Top SketchUcator
 

Re: [Plugin] Shape Bender Beta v0.1

Postby Ben Ritter » 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.
0

Ben Ritter 
 

Re: [Plugin] Shape Bender Beta v0.1

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

Just have to thank you again.

Unbelievable!
0

Ben Ritter 
 

Re: [Plugin] Shape Bender Beta v0.1

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

Thxs Chris
Really usefull plugin.
you are getting really good at programing.
0
Get Upa !

jmmad 
 

Re: [Plugin] Shape Bender Beta v0.1

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

Well well well :enlight: :thumb: :fro:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou 
Top SketchUcator
 

Re: [Plugin] Shape Bender Beta v0.1

Postby xrok1 » 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??
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby TIG » 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...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Shape Bender Beta v0.1

Postby xrok1 » 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.
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby fredo6 » 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
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Shape Bender Beta v0.1

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

Ditto from all said above, Chris!!!! This is fantasitc!!! :berserk:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [Plugin] Shape Bender Beta v0.1

Postby Phil Rader, AIA » 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.
0

Phil Rader, AIA 
Premium Member
Premium Member
 

Re: [Plugin] Shape Bender Beta v0.1

Postby Chris Fullmer » Thu Apr 09, 2009 1:24 am

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

Daniel S


My plugin did that? Was that in ultiple pieces??
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Shape Bender Beta v0.1

Postby Daniel S » Thu Apr 09, 2009 2:18 am

Yes, your plugin do that... but not works everytime... it depends where you put the first line. It`s easy to have unexpected results.
Here i attach a working example. Just select the text, run your plugin, select firt line and then the helix. It takes some time but it works.

And i attach an example to make a double bend... In your video you make a lot of operations to get the result when you can apply directly on a 3d curve (you don´t get the exactly same result). In the model you will see that i have to move the 3d curve because you can´t use it if the endline is directly into the surface (here using Fredo´s Arc On Surface).

Daniel S
0

Daniel S 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby wolfy » Thu Apr 09, 2009 3:37 am

Chris, this is a very impressive and useful new tool to your already impressive line of tools. Thanks for all the hard work, dedication and generosity...again! :enlight:
0

wolfy 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby Dave R » Thu Apr 09, 2009 3:44 am

Chris, this is way cool!

One thing that may be a bug (and perhaps you know about it already) is some softening of edges at one end of the bent geometry. I did a few simple tests with a long rectangular box and a curved line for the result. The start end gets softened. Easily fixed by just tracing over the lines but maybe it shouldn't do it?
0
Inspecting mirrors is a job I could easily see myself doing.

3 out 4 people make up 75% of the population.
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Shape Bender Beta v0.1

Postby jeff hammond » Thu Apr 09, 2009 4:42 am

Dave R wrote:Chris, this is way cool!

One thing that may be a bug (and perhaps you know about it already) is some softening of edges at one end of the bent geometry. I did a few simple tests with a long rectangular box and a curved line for the result. The start end gets softened. Easily fixed by just tracing over the lines but maybe it shouldn't do it?


yeah dave, i noticed that too.. one workaround for now is to make your straight line a little bit shorter than the object you're trying to bend (ie - if you're trying to bend a 24' long wall, make the straight line 23' with 6" in on both sides)

that's probably not the best workaround but in the little amount of time i've spent with the ruby so far, that's what i came up with to stop the edge from collapsing.
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Shape Bender Beta v0.1

Postby linea » Thu Apr 09, 2009 7:10 am

Fantastic script Chris. Thanks.
0

linea 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby MALAISE » Thu Apr 09, 2009 7:59 am

Let's make tests... Thanks a lot Chris :D

MALAISE
0
La Connaissance n'a de valeur que partagée

MALAISE 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby silver_shadow » Thu Apr 09, 2009 8:32 am

they should give out awards for those rubie developers...
like the oscar rubie awards for each year !!! well done!! :ecstatic:
0

silver_shadow 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby Dave R » Thu Apr 09, 2009 12:24 pm

Thanks Jeff. That'll work just fine.
0
Inspecting mirrors is a job I could easily see myself doing.

3 out 4 people make up 75% of the population.
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Shape Bender Beta v0.1

Postby Marian » Thu Apr 09, 2009 2:04 pm

AWESOME :sketchstatic:
Thanks you Chris!!!
0
User avatar
Marian 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby derryatlanta » Thu Apr 09, 2009 2:17 pm

Thanks so much for all the effort and time invested into this amazing ruby, Chris.
This will save me so much time and actually raise up my level of modeling, so I am indebted.

I second the ruby Oscar awards idea!

Cheers,

Nigel
0
Stop your grinnin' and drop your linen

derryatlanta 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby AcesHigh » Thu Apr 09, 2009 3:12 pm

Chris, Ive run into trouble at my first try to bend something. I have this vertical X shaped lattice of triangular beams. I am not able to bend it in no way :(

It was composed of a group with subgroups inside. I exploded everything inside, so its just meshes inside a group. Still, it doesnt work :(
0

AcesHigh 
 

Re: [Plugin] Shape Bender Beta v0.1

Postby david_h » Thu Apr 09, 2009 3:19 pm

I concur . .. however the term "Oscar" is copywrighted either by those people that make the movie awards or by the people that make the hot dogs and baloney (which are probably the same people)

so We need to come up with a different award name. . ..how about. .

oh I dunno. .. .

THE RUBY!!!
0
Last edited by david_h on Thu Apr 09, 2009 4:13 pm, edited 1 time in total.
If I make it look easy. . .rest assured--it probably is.
User avatar
david_h 
Top SketchUcator
 

Re: [Plugin] Shape Bender Beta v0.1

Postby jeff hammond » Thu Apr 09, 2009 3:34 pm

0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Re: [Plugin] Shape Bender Beta v0.1

Postby TIG » Thu Apr 09, 2009 3:38 pm

AcesHigh wrote:Chris, Ive run into trouble at my first try to bend something. I have this vertical X shaped lattice of triangular beams. I am not able to bend it in no way :(

It was composed of a group with subgroups inside. I exploded everything inside, so its just meshes inside a group. Still, it doesnt work :(


Explode all of the sub-groups etc and finally the main group. Its contents remain highlighted - immediately regroup these - it should work now...
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: Bing [Bot], driven, seasdes and 9 guests

Visit our sponsors: