[Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Chris Fullmer » Wed May 27, 2009 4:26 am

Hi, I'm not sure which of these is the real problem, but I think that its not set up to work with groups/components. So explode the splines first. Then probably also erase the construction points and construction lines. That solved it all for me. It splatted otherwise.

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] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby August » Wed May 27, 2009 5:46 am

driven wrote:the reason I'm trying to do this is the follow me tool twists the thread shape even on a single quadrant.

Hi John,

The problem you are trying to solve has been addressed with other plugins. Chris' Loft plugin is about generating fluffy, billowy, organic, drapey shapes and is probably not the right tool for your job. Your task is out at outer reaches of what you might be able to force the Loft plugin to do.

I wish I could point you to the non-twisting Follow-Me plugins, but I've only seen discussions of them, I have not tried them myself yet, so it would take some research to give you a suggestion.

I'm pretty sure that someone else following this thread knows what to tell you.

I hope this helps,
August
0
“An idea, like a ghost, must be spoken to a little before it will explain itself.”
-- Charles Dickens

August 
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Chris Fullmer » Wed May 27, 2009 5:54 am

I know I have not explained the inner workings of the script very well yet, but its partly because the next version changes some things, or exposes a a little more of how it works. So its not quite worth going into detail yet when its about to change (a little).

But....the loft might exactly the right tool for something like what he wants. Especially the next version. It has the ability to control the strength of the curvy-ness that is being given to each bezier connection. So instead of really trying to be curvy, you can minimize that a little and make it mostly flat, but rounding just the areas closest to the splines.

This is why the script is designed to actually run through every given spline, and not use the splines as "handles". It gives more accuracy this way because you CAN control where it runs - directly through each spline. And with the next addition of being able to control the strength of the beziers, its pretty handy.

All that being said, I don't prefer to use lofting tools that much. I'd probably just use my bend script or one of the follow me and keeps. They are all good alternatives, especially while this script is still so difficult to use.

Chris

(I've been debugging my next version of the script most of today with limited success :( )
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] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby driven » Wed May 27, 2009 6:20 am

cheers Chris and thanks for the comments August,

it works, exploded the curves and it's a one click job, fantastic

August wrote:I wish I could point you to the non-twisting Follow-Me plugins


I've been searching, but the advantages of this is I have a lot of control over the bezier profile and path (thanks to Fredo) and a simple rig made with xformclone.rb, so skinning between only distorts the additional sections I add at both ends, which trim square with an intersect with a plane, then it's just 'movecopy' X times...

A good tool is a good tool regardless of it's original perceived use...

thanks again chris

john

ADDED: it did this in one go, not just for drapes.... took 10 mins but no crash, this time.

Added More: Spoke to soon, this is in the components window, it seems to have locked while writing the thumbs, having completed the drawing, I'm in and out at moment so will give it time and see if it recovers, out of curiosity..
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby gilles » Wed May 27, 2009 7:12 pm

@driven, there is a very good plugin to screw profile or shape named "screw1_5.rb or screw_21.rb I prefer the first one".

However @ Chris I can say I enjoy your plugins as much I enjoy Fredo's, but this doesn't want to run on my mac. :?:
undefined method `select_tool' for nil:NilClassError Loading File clf_simple_loft_loader.rb
undefined method `select_tool' for nil:NilClass
0
" c'est curieux chez les marins ce besoin de faire des phrases "
User avatar
gilles 
Top SketchUcator
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby david_h » Wed May 27, 2009 9:44 pm

fun little tool. Thanks again Chris.
0
If I make it look easy. . .then it probably is.
User avatar
david_h 
Top SketchUcator
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby =Mr Planet= » Sat May 30, 2009 9:19 pm

Just to let you know, this plugin creates an empty group in every model, it may seem small, but SketchyPhysics (By Chris Phillips) Simply refuses to work with it.
0
I reject your reality and substitute my own.

=Mr Planet= 
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Chris Fullmer » Sat May 30, 2009 10:05 pm

Oh really? Oops. I'll try to make sure to get that fixed on the next round. I must be forgetting to delete a group somewhere in the mix. Thanks for pointing it out!

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] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby saimen » Sun May 31, 2009 12:23 pm

wow that's exactly what I need ;-)
0

saimen 
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Dave R » Sun May 31, 2009 1:11 pm

Chris, I've been playing with your Loft plugin and Driven's screw thread file. When I first opened his file I was able to create his threads by selecting two curves at a time and using 1 for the number of segments. I tried it by selecting all six curves and got a Bug Splat. I reopened the file and cut the curves down to a quarter turn thinking I'd give it fewer faces to create. Here's the results. In the background you can see a test loft with two 12-segment arcs and five loft segments.

6 curves selected.jpg


4 curves selected.jpg


2 top curves selected.jpg


The guidepoints are interesting but not quite what I expected.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Chris Fullmer » Sun May 31, 2009 4:51 pm

That means it is crashing for some reason. Normally to do with the selection including a non-edge item, or also if the segment counts don't match. I'm not sure which. You can upload the model immediately before that point and show me which lines to click on and I'll figure out what it is.

Hopefully the next version wll clean some of that up.

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] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Dave R » Sun May 31, 2009 5:03 pm

Here you go Chris. I hope it helps.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby nomeradona » Tue Jun 02, 2009 3:10 am

wow thanks a million...
0

nomeradona 
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby EscapeArtist » Tue Jun 02, 2009 3:09 pm

Hey Chris, I just started having some trouble with this plugin. Maybe you can decipher what I'm doing wrong; I know the plugin works so it must be something that I'm doing. Here's the console output:

Code: Select all
Error: #<NoMethodError: undefined method `all_connected' for nil:NilClass>
L:/Modeling/Sketchup Google/Plugins/clf_simple_loft/clf_simple_loft.rb:61:in `onLButtonUp'
L:/Modeling/Sketchup Google/Plugins/clf_simple_loft/clf_simple_loft.rb:186
Error: #<ArgumentError: Cannot convert argument to Sketchup::Point3d>
L:/Modeling/Sketchup Google/Plugins/clf_simple_loft/clf_simple_loft.rb:189:in `add_cpoint'
L:/Modeling/Sketchup Google/Plugins/clf_simple_loft/clf_simple_loft.rb:189:in `end_handles'
L:/Modeling/Sketchup Google/Plugins/clf_simple_loft/clf_simple_loft.rb:186:in `each_index'
L:/Modeling/Sketchup Google/Plugins/clf_simple_loft/clf_simple_loft.rb:186:in `end_handles'
L:/Modeling/Sketchup Google/Plugins/clf_simple_loft/clf_simple_loft.rb:94:in `onReturn'
L:/Modeling/Sketchup Google/Plugins/clf_simple_loft/clf_simple_loft.rb:61


I'm applying the plugin to 3 bezier curves, the plugin generates construction points and then stops.
0
User avatar
EscapeArtist 
Top SketchUcator
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby TIG » Tue Jun 02, 2009 3:20 pm

EscapeArtist
Code: Select all
...onLButtonUp...
line=60  best = ph.best_picked
line=61  all_best = best.all_connected
line=62  @shapes_edges << best.all_connected

It's failing to find anything you have selected when you release the mouse-button... Are you picking anything ? It falls over since 'best' = 'nil' and nil can't have connected edges...
Chris: before 'all_best = ' you could test for 'best' and re-run the main functions if it's nil, e.g.
Code: Select all
if not best
  ### run me again ###
  return nil
end#if

...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby EscapeArtist » Tue Jun 02, 2009 3:42 pm

Yep, absolutely picking something. I know the plugin works because I drew two other curves and tested it, the loft worked just fine; so it must be a problem with the curve set I was initially using. Maybe it doesn't work on curves that were part of a face. I had to draw faces to get the curves to lay flat on specific axes and then deleted the faces, leaving the curves behind. I'm probably missing knowledge about a change that happens to edges that were part of a face and how it affects the plugin.

edit:

Solved:

That was the problem, edges/curves that were part of a face will not loft. I worked around the problem by grouping the planes, exiting the group, and then drawing the curves on the faces. The lines went where I wanted and the integrity of the curve was preserved in order for loft to work.
0
User avatar
EscapeArtist 
Top SketchUcator
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby publied » Wed Jun 03, 2009 9:56 am

Chris,
a smart substitute of the old curve stitcher! they spare my time. thank you!
0

publied 
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Chris Fullmer » Tue Jun 09, 2009 10:45 pm

Pilou wrote:No possibility to automate the clicks of curves? ;)
the 10 curves are made with the Grow plug by Tig


So I've been thinking about this, and what if I made it so that holding down the mouse button (click and drag) would add lines in the order you cross over them. You can let go and then re-click and drag to add more splines to the selection set. I think that would do the trick. Then just hit enter once you've selected all the splines you want to use.

Would that be a good solution?

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] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby pilou » Tue Jun 09, 2009 11:09 pm

Marvelous :thumb:
The only problem for you is the order of the curves ;)
image of the original post
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Chris Fullmer » Tue Jun 09, 2009 11:30 pm

Chris Fullmer wrote: what if I made it so that holding down the mouse button (click and drag) would add lines in the order you cross over them.

No, the order of the curves becomes the users problem to figure out. It will all depend on how you click and drag over the splines. ;)

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] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Gaieus » Tue Jun 09, 2009 11:33 pm

So Chris you got to the point to quote yourself. I've only seen this from elderly politicians so far. :shock:
0
User avatar
Gaieus 
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Chris Fullmer » Tue Jun 09, 2009 11:37 pm

I wasn't quoting myself, I was re-explaining myself :D
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] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby pilou » Tue Jun 09, 2009 11:57 pm

So seems perfect! :enlight:
ps Auto reference can't be a bad thing :lol:
By me Myself and I ;)
And sorry for not seen with more attention your previous explanation! :oops:
I was just dazzled that you restart your crazzy plug! :)
0
Last edited by pilou on Thu Jun 11, 2009 11:36 pm, edited 1 time in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Daniel S » Thu Jun 11, 2009 10:21 pm

Each spline must have the same amount of segments and with Fredo´s Bezier plugin it´s easy to create this (has an option for Precision: total number of segments of the generated curve).
I just try this option with Loft alpha and:
Loft.gif

It´s great combination of plugins.

Daniel S
0

Daniel S 
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Chris Fullmer » Thu Jun 11, 2009 10:34 pm

Wow, that's pretty impressive! I do have a working version I'm testing that works with splines with different segment counts, but it won't be released for a while I'm sure. So thanks for posting that great work-around!

That's a pretty cool model too!

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] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Marian » Thu Jun 11, 2009 10:34 pm

:o :shock:
0
User avatar
Marian 
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby pilou » Thu Jun 11, 2009 11:36 pm

It's the same with Grow plug's TIG above as you copy move Size Transfom the same curve before the Loft Chris plug :mrgreen:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby Sergio Morera » Mon Jun 15, 2009 4:16 pm

Dear Chris, thank you very much for another wonderful utility. All your hard work is much appreciated by the sketchup community. The talent and commitment of people like you is what makes sketchup a decent modelling application. My respects!!!
0

Sergio Morera 
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby accabrera » Fri Jul 03, 2009 5:54 am

This is amazing! thanks ! :sketchstatic:
0

accabrera 
 

Re: [Plugin] Simple Loft alpha 0.1b -- UPDATED May-15-09

Postby JClements » Fri Jul 03, 2009 4:46 pm

Nice job, Chris!

Using Fred0's Polyline Segmentor it is a snap to make all the curve's have the same number of segments. [HINT: a collaboration ...]

Now if there was a way to handle closed curves... ??
In the attached I deleted one segment in each curve, then lofted. Since each curve is planar, maybe after the loft is applied, their-open ends could be "auto-stitched" and then smoothed with the initial lofted-surface?

In this example the top-most contour's surface can't be closed. Anyway to make a "dome" from it by selecting it and expressing the "slope/bulge" of the dome by entering the number of segments?

Just some ideas to mull over.

Regards, John
0
Last edited by JClements on Fri Jul 03, 2009 5:05 pm, edited 1 time in total.
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: Bing [Bot], Google Bot and 8 guests

Visit our sponsors: