SketchUcation Premium Membership

 

 

[Plugin] Blend ver 1.12.

[Plugin] Blend ver 1.12.

Postby kirill2008 » Wed Aug 12, 2009 12:48 pm

This plugin became obsolete but you can find all its functionality in 'Blend' tool of 'LSS Toolbar 2.0' extension. It is still only a beta version though. This particular tool works more or less stable. Find out more at viewtopic.php?f=323&t=47399
Last edited by kirill2008 on Thu May 16, 2013 6:47 am, edited 19 times in total.
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend

Postby watkins » Wed Aug 12, 2009 1:38 pm

Dear Kirill,

You have been busy! Can you use this plugin with Bezier lines? I assume that both curves must have the same number of segments.

Regards,
Bob
watkins
 
Posts: 1367
Joined: Wed Nov 14, 2007 5:47 pm

Re: [Plugin] Blend

Postby watkins » Wed Aug 12, 2009 1:45 pm

Dear Kirill,

From your video example, the step count does not seem to correspond to the number of lines drawn.

I note that the end-points for the new lines are terminated on the X-Y plane. Would it be possible to modify the script so that the end-points are determined by a third, curved line connecting the end-points of the boundary lines. The number of steps could then be determined/chosen by altering the number of segments of the third line.

Regards,
Bob
watkins
 
Posts: 1367
Joined: Wed Nov 14, 2007 5:47 pm

Re: [Plugin] Blend

Postby kirill2008 » Thu Aug 13, 2009 9:48 am

watkins wrote:Can you use this plugin with Bezier lines? I assume that both curves must have the same number of segments.
Bob

I'm not sure about Bezier lines, but you can use plugin with freehand lines regardless of segments count. It is also possible to select an arc curve and freehand curve, because ArcCurve is a subclass of Curve.
watkins wrote:From your video example, the step count does not seem to correspond to the number of lines drawn.

Thank's. Bug is fixed check ver. 1.1. for update.
watkins wrote:I note that the end-points for the new lines are terminated on the X-Y plane.

Well, actually it's not exactly such a way. Points for the new curves are at vectors between corresponding vertices of 2 initial curves (refer to the attachment).
watkins wrote:Would it be possible to modify the script so that the end-points are determined by a third, curved line connecting the end-points of the boundary lines.

Yes, it is possible for sure :) I'll try to implement such feature.
Please, register (free) to access all the attachments on the forums.
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.1.

Postby watkins » Thu Aug 13, 2009 4:35 pm

Dear Kirill,

This is beginning to look like a very useful plugin. Thank you for all your hard work, and your generosity.

Kind regards,
Bob
watkins
 
Posts: 1367
Joined: Wed Nov 14, 2007 5:47 pm

Re: [Plugin] Blend ver 1.1.

Postby MALAISE » Thu Aug 13, 2009 6:31 pm

Hi Kirill
Thanks you for the job you've done on this second plugin. It's opening a new world of shapes.. :thumb: :thumb:

MALAISE :)
La Connaissance n'a de valeur que partagée
MALAISE
 
Posts: 620
Joined: Sun Apr 20, 2008 1:23 pm
Location: Cergy Pontoise FRANCE
Name: Pierre

Re: [Plugin] Blend ver 1.2.

Postby watkins » Thu Aug 13, 2009 6:54 pm

Dear Kirill,

I have just been trying out your plugin and note the following:

* that the 'undo' doesn't work with your plugin, i.e., I cannot revert back to the drawing before your plugin is used, and

* your plugin creates lines (steps) which are outside the group which contains the surface. One has to hide the group and then delete the lines. Is this how the plugin is meant to work?

Looking good.

Regards,
Bob
watkins
 
Posts: 1367
Joined: Wed Nov 14, 2007 5:47 pm

Re: [Plugin] Blend ver 1.2.

Postby accabrera » Fri Aug 14, 2009 4:25 am

Great Plugin!!!

Big Thank you
accabrera
 
Posts: 12
Joined: Fri Jul 03, 2009 4:49 am
Name: alejandro

Re: [Plugin] Blend ver 1.2.

Postby JClements » Fri Aug 14, 2009 5:01 am

Krill, nice work. If you can get two objects to follow and blend along a third, curve (path) as was suggested above, then we've got a nice, easy-to-use taper tool.

I am hoping you can do it.

Thanks, John
John
Illustrator
Beaverton, Oregon
User avatar
JClements
Premium Member
Premium Member
 
Posts: 773
Joined: Wed Nov 14, 2007 4:32 pm
Location: Portland/Beaverton, Oregon
Name: JClements
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: illustration, cartoons
Level of SketchUp: Intermediate

Re: [Plugin] Blend ver 1.2.

Postby kirill2008 » Fri Aug 14, 2009 5:30 am

Hi, Bob.
Thank's a lot for your feedback, it really helps to improve the script. :thumb:

watkins wrote:Dear Kirill,
* that the 'undo' doesn't work with your plugin, i.e., I cannot revert back to the drawing before your plugin is used, and

Well, actually 'undo' works, but yes it sometimes (big steps count value and/or big segments count of initial curves) cannot revert back drawing.
undodemo.gif

Animation shows '<Ctrl>+z' combination pressed effect.
Now (ver 1.3) all steps of Blend command joined to the single command and can be undone as one single action.
watkins wrote:* your plugin creates lines (steps) which are outside the group which contains the surface. One has to hide the group and then delete the lines. Is this how the plugin is meant to work?

Yes, they are supposed to be separated. But now (ver 1.3) I decided to put curves to another separate group.

JClements wrote:If you can get two objects to follow and blend along a third, curve (path) as was suggested above, then we've got a nice, easy-to-use taper tool.

Well, the final destination is an interactive blended object, that consists of 2 initial curves/faces and maybe a path. Interacting with initial curves and/or path has to affect the whole object. Sounds like a kind of challenge for me...
Please, register (free) to access all the attachments on the forums.
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.3.

Postby mitcorb » Fri Aug 14, 2009 12:15 pm

Very interesting tool, kirill:
Seems to have qualities of Skin.rb and Simple Loft.rb but on steroids.
Excellent work!
mitcorb
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb
Top SketchUcator
 
Posts: 3405
Joined: Sat Mar 22, 2008 2:32 pm
Location: USA
Name: Tim
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Blend ver 1.4.

Postby kirill2008 » Fri Aug 14, 2009 6:11 pm

Little bonus video:

Ver. 1.4 is able to process more or less complex geometry.
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.4.

Postby Daniel S » Fri Aug 14, 2009 8:57 pm

This plugins looks great!
What about blend colors too?
Here an example that creates intermediate faces and colors from two existing ones (2 steps).

colorblend.gif

Of course this is not sketchup, is only a simulation.

Daniel S
Please, register (free) to access all the attachments on the forums.
Daniel S
 
Posts: 349
Joined: Mon Nov 12, 2007 6:06 pm
Location: Mar del Plata, Buenos Aires, Argentina

Re: [Plugin] Blend ver 1.4.

Postby cosycat » Fri Aug 14, 2009 9:58 pm

Great script, i've been waiting for something like this for ages. Couple of odd bugs with circles (v1.4)
1) seems to miss out a segment when doing a blend
circles2.jpg


2) if you create the second circle with a move copy, you often get something like this
circles1.jpg
Please, register (free) to access all the attachments on the forums.
cosycat
 
Posts: 96
Joined: Wed Aug 27, 2008 12:34 pm

Re: [Plugin] Blend ver 1.4.

Postby Ken » Fri Aug 14, 2009 10:18 pm

Note sure if it me or note. But I tried V3 and was pleased with the results, however, V4 does not seem to display the same results. Note, I dont' have V3 any more, as I copied over the script, so this is from memory.

I particular like how if blended a square to a circle, now every time the output has folds or is not a straight blend from the square to the circle.

Ken
Government rushes to help the irresponsible and does little for the responsible.
User avatar
Ken
Premium Member
Premium Member
 
Posts: 707
Joined: Thu Nov 15, 2007 1:38 pm
Location: Fort Mill, SC
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Blend ver 1.4.

Postby mitcorb » Sat Aug 15, 2009 1:57 am

yeah, I had a gap between the originating curve and the next intervening step toward the destination curve. Easily knitted together with line tool, and so forth, but just mentioning.
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb
Top SketchUcator
 
Posts: 3405
Joined: Sat Mar 22, 2008 2:32 pm
Location: USA
Name: Tim
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Blend ver 1.4.

Postby utiler » Sat Aug 15, 2009 3:27 am

This is a nice plugin, mate! I'm going to play!!!!
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1927
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: utiler
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Blend ver 1.4.

Postby tomot » Sat Aug 15, 2009 4:56 pm

Nice plugin! but still needs some tweaking.
I find it first works with a new fresh startup screen. but then the more experimenting I do with Blend the more inconsistant the results become, finally the Bend of the left Y's in the picture did not take place at all.

Code: Select all
Error: #<NoMethodError: undefined method `vertices' for nil:NilClass>
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sublend.rb:45:in `blend'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sublend.rb:174
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/sublend.rb:153:in `call'

please don't give up!
Please, register (free) to access all the attachments on the forums.
tomot
 
Posts: 613
Joined: Mon Apr 07, 2008 12:18 am
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Blend ver 1.5.

Postby kirill2008 » Sat Aug 15, 2009 11:13 pm

Color blending demo video (for Daniel S ;) ):


cosycat, please try ver. 1.5. I tried to solve the problem of missing mesh pieces.

tomot, I'll try to find out, what's the problem with rotated Y's...

And speaking about the 3'd curve (the path): looks like, it demands a kind of major refactoring :? It is more complex task than I thought and it will take a little time...
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.5.

Postby tomot » Sun Aug 16, 2009 12:22 am

I don't want you to misunderstand. This is not only related to the "y" shape. Other shapes have produced the same inconsistent results in SU 7.
another example:
make 2 identical closed shapes, scale one larger, apply bend, same code error occurs

cheers.
tomot
 
Posts: 613
Joined: Mon Apr 07, 2008 12:18 am
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Blend ver 1.5.

Postby kirill2008 » Sun Aug 16, 2009 7:02 am

tomot wrote:I don't want you to misunderstand. This is not only related to the "y" shape. Other shapes have produced the same inconsistent results in SU 7.
another example:
make 2 identical closed shapes, scale one larger, apply bend, same code error occurs

Looks like it is SU7 issue... SU6 processes correctly:

When processing faces it is necessary to select them by single click (not a fence).
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.5.

Postby majid » Sun Aug 16, 2009 10:53 am

woooow...it would be a dreamy plugin if no bugs!!..I gave it a try , but it seems that previous versions were better on freehand lines, while the last version doesn't works fine... also on closed line doesn;t works at all (su 6)..seeing forward to see the improvements mate btw thanks thanx thanx! :thumb:
User avatar
majid
Top SketchUcator
 
Posts: 1544
Joined: Sun Dec 16, 2007 8:51 pm
Location: Isfahan Iran
Name: majid
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: [Plugin] Blend ver 1.5.

Postby Dave R » Sun Aug 16, 2009 11:41 am

This is a useful plugin. Well, for me it was until I installed the latest version (1.5). Now I get what you see in the attached screen shot. Unfortunately I installed over the previous version. Keep working at it. I'm sure you'll get it all working.

Thank you.
Blend.jpg
Please, register (free) to access all the attachments on the forums.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 9004
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [Plugin] Blend ver 1.5.

Postby Daniel S » Sun Aug 16, 2009 1:35 pm

Thank you for adding color blending :ecstatic: :ecstatic: :ecstatic:

I have problems with this new version too (I use SU7).

Sometimes work with results like the ones Dave R post above.
In other cases the plugin dosen´t do anything and prints this in the ruby console:

Error: #<NoMethodError: undefined method `back_material' for #<Sketchup::Edge:0x67b7f70>>
C:/Archivos de programa/Google/Google SketchUp 7/Plugins/sublend.rb:68:in `blend'
C:/Archivos de programa/Google/Google SketchUp 7/Plugins/sublend.rb:270
C:/Archivos de programa/Google/Google SketchUp 7/Plugins/sublend.rb:248:in `call'

Daniel S
Daniel S
 
Posts: 349
Joined: Mon Nov 12, 2007 6:06 pm
Location: Mar del Plata, Buenos Aires, Argentina

Re: [Plugin] Blend ver 1.5.

Postby watkins » Sun Aug 16, 2009 3:36 pm

Dear Kirill,

It might be a good idea to post versions 1.0 to 1.5 as the later versions seem to be problematic. Version 1.0 seemed to work quite nicely. I too have over-written previous versions and so cannot go back a step or two.

Kind regards,
Bob
watkins
 
Posts: 1367
Joined: Wed Nov 14, 2007 5:47 pm

Re: [Plugin] Blend ver 1.5.

Postby watkins » Sun Aug 16, 2009 3:58 pm

Dear Kirill,

Version 5 doesn't seem to work in SU Pro 7, even for simple shapes, but don't give up.
Please, register (free) to access all the attachments on the forums.
watkins
 
Posts: 1367
Joined: Wed Nov 14, 2007 5:47 pm

Re: [Plugin] Blend ver 1.5.

Postby blajnov » Sun Aug 16, 2009 4:07 pm

watkins wrote:Dear Kirill,

It might be a good idea to post versions 1.0 to 1.5 as the later versions seem to be problematic. Version 1.0 seemed to work quite nicely. I too have over-written previous versions and so cannot go back a step or two.

Kind regards,
Bob

There are three previous versions:
v 1.2
v 1.3
v 1.4
Rename files in sublend.rb
Please, register (free) to access all the attachments on the forums.
Last edited by blajnov on Mon Aug 17, 2009 7:26 am, edited 2 times in total.
blajnov
 
Posts: 45
Joined: Sat Jan 05, 2008 2:58 am
Name: yura

Re: [Plugin] Blend ver 1.5.

Postby watkins » Sun Aug 16, 2009 4:32 pm

Thanks for posting versions 1.2 and 1.4. I will test them out with areas. Previously, I only tested this plugin with arcs, and that still works in V1.5.
watkins
 
Posts: 1367
Joined: Wed Nov 14, 2007 5:47 pm

Re: [Plugin] Blend ver 1.6.

Postby kirill2008 » Mon Aug 17, 2009 1:08 pm

Guys, I don't know yet how to prevent skin (mesh) turning inside out :( The point is that script processes vertices with corresponding indices: so maybe flipping normal or 180 degrees rotation (or 90) of one of 2 faces may help.
Missing triangles (they vanished after color blending feature addition) have come back now :) (ver. 1.6)
Error messages kind of "undefined method `back_material' for... " debugged (I guess :) ).
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.6.

Postby watkins » Mon Aug 17, 2009 4:15 pm

Dear Kirill,

Here is a quick question. You mention Sketchup 6 in both the first post and in the introduction to your plugin. Does this plugin work well in version 6? Many people have migrated to version 7, although with little added benefit.

Keep going, you are doing a great job.

Kind regards,
Bob
watkins
 
Posts: 1367
Joined: Wed Nov 14, 2007 5:47 pm

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: AnJyJo, Bing [Bot], chrislbj, dhinzidin, giosrd, izbushka, krisjaniszakis, Mallawere, matsegora, noro, OSN58, turan and 13 guests