[Plugin] Shape Bender Beta

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

Postby Chris Fullmer » Sun Apr 12, 2009 9:04 pm

If you have component spray installed, make sure you update it to the newest version:

viewtopic.php?f=180&t=16446&st=0&sk=t&sd=a&hilit=component+spray#p129280

If not, then it could be another plugin. You might have to go through them to find the offender. Then we can work out a solution hopefully, sorry for the inconvenience Sepo,

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.51 UPDATED April 11, 2009

Postby sepo » Mon Apr 13, 2009 11:15 am

Chris
I have removed all plugins and it is still showing the error. The funny bit is that I managed to install it on the laptop and it works fine there.
0

sepo 
 

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

Postby thomthom » Mon Apr 13, 2009 12:38 pm

Chris, maybe your plugin could detect the old version of component spray and alert the users? That might make things easier for you as Component Spray is so widely used, but not necessarily updated.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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

Postby Chris Fullmer » Mon Apr 13, 2009 5:12 pm

@Thom - Thats not a bad idea, I'll have to look into that. That could save some headaches for me and the users.

@Sepo - bummer! Well, one thing we could stil do. The screenshot you provided is missing some of the error messages. Could you try it again on a fresh clean model and open the ruby console before you start the plugin. Then select the shape, then activate the plugin. Then click on the line, then curve. As soon as the error message start coming in, deactivate the tool (or else the message will keep repeating themselves forever!). Then once its de-activated, go tot he console and make it wide and tall and select everything in the console from top to bottom and apste it here.

That is the only thing I can think to try. Then I can see all the errors and maybe one will help.

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.51 UPDATED April 11, 2009

Postby sepo » Mon Apr 13, 2009 5:24 pm

Error: #<ArgumentError: comparison of Float with nil failed>
(eval):44:in `>'
(eval):44:in `update'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:533:in `exploder'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:526:in `each'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:526:in `exploder'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:244:in `onLButtonUp'
Error: #<NoMethodError: undefined method `/' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:671:in `draw'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:526
Error: #<NoMethodError: undefined method `/' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:671:in `draw'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:671
Error: #<NoMethodError: undefined method `/' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:671:in `draw'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:671
Error: #<NoMethodError: undefined method `/' for nil:NilClass>
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:671:in `draw'
C:/Program Files/Google/Google SketchUp 7/Plugins/clf_shape_bender/clf_shape_bender.rb:671
Error: #<NoMethodError: undefined method `/' for
0

sepo 
 

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

Postby sepo » Mon Apr 13, 2009 5:24 pm

This is what I get and than it start repeating itself
0

sepo 
 

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

Postby Chris Fullmer » Mon Apr 13, 2009 5:25 pm

Thats perfect, thanks! I'll see if I can find the problem there.

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.51 UPDATED April 11, 2009

Postby Chris Fullmer » Mon Apr 13, 2009 5:28 pm

Hmm, that is a progressbar error. What OS are you running?
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.51 UPDATED April 11, 2009

Postby sepo » Mon Apr 13, 2009 5:36 pm

XP
0

sepo 
 

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

Postby sepo » Mon Apr 13, 2009 5:43 pm

I have reinstalled progressbar.rb but still same error.
0

sepo 
 

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

Postby david_h » Mon Apr 13, 2009 6:48 pm

So Chris. . .I got the new version. Works pretty well. Sorry you were working this weekend on it. I hope you still had time to dye a few Easter Eggs.

Anyway, couple of q's. 1) are there supposed to be more than 1 icon on the toolbar. Seems I downloaded several png's. Edit. . .Oh wait! The other pngs are for the cursor. . .D'uh
2) the original Group doesn't erase. Is that a change with the latest iteration or what?
0
If I make it look easy. . .then it probably is.
User avatar
david_h 
Top SketchUcator
 

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

Postby Chris Fullmer » Mon Apr 13, 2009 7:15 pm

Hi David, no worries, I had plenty of Easter egg time. It was a good weekend.

Yes, the original component/group is suppose to stay in place now. That was a recent change.

As for the errors you're getting Sepo, I should be more clear, its not a problem with progressbar. Progressbar is working fine. Its something to do with what I am feeding to progressbar. That has always been an issue with the component spray. Could you try running make faces with the ruby console open and see what happens? If it is also broken, then that will help determine that there is still something somewhere messing with progressbar. Thanks!

Chris

And don't hesitate to tell me you're tired of troubleshooting for me. I gldaly would do it myself if I could reproduce the error, so a great big thanks for all your time Sepo!
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.51 UPDATED April 11, 2009

Postby tulacong » Mon Apr 13, 2009 9:26 pm

thank :sketchstatic: :ugeek:
0

tulacong 
 

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

Postby jeff hammond » Mon Apr 13, 2009 11:26 pm

i'm wondering how difficult it would be to make a ruby that preps an object to be bent. (it could be a part of ShapeBender or separate as it would benefit fredo's bend tool as well)..

it would basically replace the need for doing some repetitive steps in order to set up certain objects to be bent cleanly.. i can achieve the proper shape via math or the more simpler route of SU inferencing but the ruby could work either way (or can it?)

this ruby has already made it a lot faster for me to draw curved shapes because i can do all the prep work on xyz axis and then bend it later.. something with one compound curve used to take me 20-30 minutes to draw and now i can do it in 5-10... introducing yet another curve (2nd attachment collides 3 different radii) used to take me over an hour to draw and i can do that in ~20 minutes now.

my question is whether or not this is out of the scope of a ruby script. ??

bend1.skp




so if the first example is possible, how about adding yet another curve into the mix?
bend2.skp




oh, am i the only one noticing a huge slow down with the introduction of the progress bar? certain actions are at least 10,000x slower now.

[edit] also, those examples show the problem with the softened edge when trying to do precision fitting.. i could extend the straight line to get hard ends but then nothing goes in it's right place.
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

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

Postby sepo » Mon Apr 13, 2009 11:44 pm

Chris I am not at my desktop at moment, so I can't really test it. I will test it tomorrow on my desktop. And it is not a problem at all. I am very greatful to you for your wonderful free scripts and if I can help with anything please do not hesitate to ask.
0

sepo 
 

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

Postby Chris Fullmer » Mon Apr 13, 2009 11:53 pm

Sorry Jeff, I just don't see how its possible at all. At least, not so that it would work with any regularity on more than a small handful of objects.

But I do have a question, you say (in another post, and I'm paraphrasing) that the geometry is useless to you the way it currently is working. What are you planning on doing with the geometry after you bend it that makes it so useless?

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.51 UPDATED April 11, 2009

Postby jeff hammond » Tue Apr 14, 2009 12:16 am

i have to build it.

pretty much everything i build is curved so in that regard, SU is a weird program to work with but the segmented curves aren't a big deal as long as key intersections/joints are at vertices... unless i go insanely high poly with the drawings, i can be out 3/4" or more which just isn't an option..
also, if i'm colliding multiple curves then the resulting geometry isn't a radius or an ellipse and i have to plot points for construction... if those points aren't in the right spot, my measurements are off again..

realistically, i have ways to build this stuff without drawing it first but by working through it on a computer first, i can do it more easily on site and/or have a way to show someone on my crew to make the cuts.. it's still faster for me to spend the hour or two on the computer getting my points in the right spot than it is to build without the drawings but if i can streamline the process even more then i'm not complaining :).

[add] - as far as the actual drawing goes, there are problems as well.. these shapes are just shells and i often have to continue on to figure out the framing in tricky areas.. if the planes/lines aren't where they should be, it just doesn't work out too well.
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

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

Postby Chris Fullmer » Tue Apr 14, 2009 12:51 am

Oh yes, now I remember the kind of stuff you use SU for. I think you need an entire plugin of your own for that skateboard park type work. That is definitely well beyond the scope of what I was thinking of with shape bender, as it would require a different type of bending calculation I think. Definitely better suited for a solid modeler or something. Sorry I can't be of more help at this point Jeff,

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.51 UPDATED April 11, 2009

Postby jeff hammond » Tue Apr 14, 2009 3:31 am

Chris Fullmer wrote: I think you need an entire plugin of your own for that skateboard park type work.


oh man, that would be nice.. if times were better, i'd be into paying for 2-3 custom scripts.. maybe in another year or two. :hope:


Sorry I can't be of more help at this point Jeff,


ha, your plugins have already helped immensely.. i used to have to draw stuff like this line-by-line and being able to bend things now cuts more than 1/2 the time it used to take.. don't sweat it..
you gotta realize that i know i'm asking for some weird requests that only I or maybe a handful of others would actually use :D..



just in case anyone else has the need to get the lines to break like this, i put a little step-by-step together...
custom_arc_tut.skp


i actually do it a little bit different than this (esp. steps 4-6) which is a little easier/less confusing but it was harder/more confusing for me to show how i do it.. this should get the idea across though.
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

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

Postby wolfy » Tue Apr 14, 2009 4:48 am

Chris, you are a machine!! (the good kind, of course)
0

wolfy 
 

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

Postby Chris Fullmer » Tue Apr 14, 2009 4:57 am

Jeff, I want to emphasize a bug in the code since it might matter to you, since you are making shapes that get built. But the first and last angles might not be calculated the way you would expect - I suppose that depends on what you expect. The image shows the problem. Every sliced part of the model lines up correctly to the curve expect the two ends. That is because I am not actually finding that outer angle at this point. It is a planned improvement :?

curve bug.jpg


So I thought you should be aware of that so that it doesn't cause you undue pain when you can't figure out why stuff is not lining up right,

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.51 UPDATED April 11, 2009

Postby jeff hammond » Tue Apr 14, 2009 5:53 am

yeah, i noticed that.. i didn't realize it was a bug though and i more/less attributed it to being like using the follow-me tool on an arc.

here's a top view showing that problem:
followme_problem.jpg



the workaround (and the same workaround goes for shapebender) is to make sure there is some flat before going into the bend.

followme_problem.skp


i guess if you manage to figure out how to fix your bug, pass that info along to google so they can fix follow-me :D

[fwiw - if you look at the skp titled bend2.skp a few posts ago, you'll see that i added the flat ends.. the flat won't affect the setup i do to get all the intersections to match up because there are no vertices on it.. if i add 4' of straight wall prior to bending, i'll also add 4' of straight line before the curve]
0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

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

Postby sepo » Tue Apr 14, 2009 10:41 am

Chris

It seems make faces makes error but makes faces nevertheless. Here is an extract from the console.

Error: #<ArgumentError: comparison of Float with nil failed>
(eval):44:in `>'
(eval):44:in `update'
C:/Program Files/Google/Google SketchUp 7/Plugins/makefaces.rb:146:in `makeFaces14'
C:/Program Files/Google/Google SketchUp 7/Plugins/makefaces.rb:140:in `each'
C:/Program Files/Google/Google SketchUp 7/Plugins/makefaces.rb:140:in `makeFaces14'
C:/Program Files/Google/Google SketchUp 7/Plugins/makefaces.rb:163
C:/Program Files/Google/Google SketchUp 7/Plugins/makefaces.rb:163:in `call'
0

sepo 
 

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

Postby dtrarch » Tue Apr 14, 2009 3:56 pm

Chris

I'm not sure if this is the core issue, but rotating the arc to mid segment works for this simple try.

dtr
Rotated_Arc-Bend.png
Rotated_Arc-Bend.png
0

dtrarch 
Premium Member
Premium Member
 

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

Postby jeff hammond » Tue Apr 14, 2009 4:24 pm

dtr...
the problem with doing that is it throws off all the measurements.. the SU arc is only correct at the vertices -- not the midpoints of the segments.


0
dotdotdot
User avatar
jeff hammond 
Global Moderator
 

Muchas Gracias

Postby ideas_arte » Tue Apr 14, 2009 6:06 pm

:berserk: :berserk: :berserk: :berserk: :berserk:



Thank you very much..!
0

ideas_arte 
 

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

Postby dtrarch » Tue Apr 14, 2009 10:14 pm

Jeff

Got it and thanks.

dtr
0

dtrarch 
Premium Member
Premium Member
 

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

Postby waltw » Wed Apr 22, 2009 3:36 pm

Draw line on red axis, build and group a cube, draw an arc all on the same plane. Select tool.

Can't seem to get by 'please select a single line on red axis' I don't know much about ruby but thought that the following info might be pertinent??
Ruby console output.jpg


Line 165 refers to code snippet: @line_pointer = UI.create_cursor(line_cursor_path, 15, 2)

My cursor does not change in anyway. Supposed to??


I thought there might be a conflict with other scripts so I removed them all (other than progress bar) to test - no avail.

Using XP SP3, SU7

OpenGL problem? Any suggestions as to what to tweak?

Thanks, Walt
0

waltw 
 

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

Postby Chris Fullmer » Wed Apr 22, 2009 4:54 pm

That sounds like it did not get installed quite right. There should a file called clf_shape_bender.loader.rb in the main plugins folder. Then there should be a folder caled "clf_shape_bender" and inside that folder should exist the files:

clf_shape_bender.png
clf_shape_bender.rb
clf_shape_bender_small.png
curve_pointer.png
default_pointer.png
line_pointer.png

I'm guessing you might have ended up with everything in the main plugins folder. So manually create the clf_shape_bender folder and move all those files above into it, leaving only clf_shape_bender_loader.rb in the main plugins folders.

See if that is by chance the problem and let me know, thanks!

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.51 UPDATED April 11, 2009

Postby massimo » Wed Apr 22, 2009 5:38 pm

Many thanks for the plugin, Chris.
It can make this...
bend tool.jpg

or this!!
bend tool 1.jpg
0
Last edited by massimo on Wed Apr 22, 2009 7:41 pm, edited 1 time in total.
User avatar
massimo 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: bernjimenez, HornOxx, Ryuta Watanabe and 36 guests

Visit our sponsors: