SketchUcation Premium Membership

 

 

[Plugin] Blend ver 1.12.

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: 3394
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: 1924
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: 610
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: 610
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: 8960
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

Re: [Plugin] Blend ver 1.6.

Postby cosycat » Mon Aug 17, 2009 4:38 pm

Thanks for all of the updates, this is really getting there. I have noticed that the result (v6) does depend on the order in which the points are drawn (for closed shapes at least) - this might explain some of the inside out results people are getting.
Quick example, the numbers show the order in which the upper shape points were added
bendtwist.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.6.

Postby kirill2008 » Mon Aug 17, 2009 5:45 pm

Ver 1.6 demo videos:
Filtration capabilities video:


Blending between different types of entities demo:


Fixing inside out problem variant:

As cosycat mentioned:
cosycat wrote:the result (v6) does depend on the order in which the points are drawn
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.6.

Postby olishea » Tue Aug 18, 2009 4:46 pm

WOW. This is an awesome plugin. I tried using skin.rb for meshing between edges but it never worked for mac (i think). so im glad you can do it with this plugin!! :berserk: :berserk: :berserk:

Amazing work, one of the best plugins around. the modeling possibilities are endless, I'm loving it!
oli
User avatar
olishea
Premium Member
Premium Member
 
Posts: 2492
Joined: Sat Nov 01, 2008 4:22 pm
Location: Manchester, UK
Name: Oliver Shea

Re: [Plugin] Blend ver 1.6.

Postby utiler » Tue Aug 18, 2009 11:43 pm

Kirill2008,
Have you thought about adding a path function to this script?
[see attached]
Blend-Path.png


Your generosity is much appreciated, I only wish I knew ruby too so I could reply the favor....
Please, register (free) to access all the attachments on the forums.
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1924
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.6.

Postby kirill2008 » Wed Aug 19, 2009 12:10 pm

utiler wrote:Have you thought about adding a path function to this script?

Yes, I think about it almost every day (and some times night :) too). I want to add a path processing very much, but it looks like such task is less obvious than already implemented algorithm. And maybe it's better to make a brand-new plugin with path processing, because it will work the other way than existing plugin.
Ver. 1.7. demo video, shows blending between face and construction point and context menu "Blend" command usage.


I don't know yet how to implement custumization of context menu items, so "Blend" command appears always when more than 1 object is selected
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.6.

Postby kirill2008 » Wed Aug 19, 2009 5:16 pm

Olishea, glad to hear sublend works on mac :thumb: (I was just going to ask someone to try it on mac). Thank's for testing and feedback and happy blendings :)
Ofcourse it's not my achievement :) , it's just because ruby is cross platform.
Last edited by kirill2008 on Thu Aug 20, 2009 5:31 am, edited 1 time in total.
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.7.

Postby Ken » Wed Aug 19, 2009 5:47 pm

Not sure how you are fixing the inside out problem. I can't tell exactly what you are doing. Could you please try again?

Thanks in advance

Ken
Government rushes to help the irresponsible and does little for the responsible.
User avatar
Ken
Premium Member
Premium Member
 
Posts: 701
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.7.

Postby Ben Ritter » Wed Aug 19, 2009 9:15 pm

Kirill,

Thank you so much for the script, very useful.

Is there a bug with the blending of colors, I can't seem to get that to work?
Ben Ritter
 
Posts: 351
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois

Re: [Plugin] Blend ver 1.7.

Postby kirill2008 » Thu Aug 20, 2009 5:18 am

Ken wrote:Not sure how you are fixing the inside out problem. I can't tell exactly what you are doing. Could you please try again?
Ken

I'm flipping the face normal (lower one).
Ben Ritter wrote:Is there a bug with the blending of colors, I can't seem to get that to work?

Maybe. Note that color blending enabled only for 2 faces yet (does not work for curves, edges and construction points) and both face front material and face back material has to differ from default one. Hope that helps.
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.7.

Postby kirill2008 » Thu Aug 20, 2009 6:26 pm

Now the implementation of interaction is in progress (it is not yet stable so ver 1.8 will appear a little bit later). I think that interaction ability will solve (more or less) the inside out problem. I mean it will be easier to fix it by moving, rotating and/or flipping one of the initial faces and the result mesh or set of intermediate faces/curves will refresh automatically. This will be the step towards path processing also.
kirill2008
 
Posts: 107
Joined: Sun Aug 02, 2009 8:06 pm
Location: Chelyabinsk, Russia
Name: kirill2008

Re: [Plugin] Blend ver 1.7.

Postby Gaieus » Thu Aug 20, 2009 6:38 pm

Come on, Kirill, this is too much for me today. :o :shock: :? :roll:
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27604
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

Re: [Plugin] Blend ver 1.7.

Postby EarthMover » Thu Aug 20, 2009 8:16 pm

Mr Krillshot....fantastic work and dedication to continually improving your script. Can't wait to see v. 1.8! Thanks so much!
A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller
Some of my 3D crap
User avatar
EarthMover
Top SketchUcator
 
Posts: 1792
Joined: Fri Sep 12, 2008 9:06 pm
Location: Eastern Pennsylvania
Name: Adam Hails

Re: [Plugin] Blend ver 1.7.

Postby Ken » Thu Aug 20, 2009 10:34 pm

Mr Krillshot

Great pluging, however, I am having trouble duplicating all the video you are showing. Would it be possible to also attach the Sketchup file so I can try out the same file as you are using. This way I would know if the problems I am having are with my computer or the plugin.

Again thanks for the pluging

Ken
Government rushes to help the irresponsible and does little for the responsible.
User avatar
Ken
Premium Member
Premium Member
 
Posts: 701
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.7.

Postby utiler » Thu Aug 20, 2009 11:32 pm

This is nuts; really. I can't beleive how fast you are developing this plugin, Mr Kirill!!! :sketchstatic:
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1924
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.7.

Postby kirill2008 » Fri Aug 21, 2009 7:47 pm

Ken wrote:Would it be possible to also attach the Sketchup file so I can try out the same file as you are using.

interactive_tests.skp

File with the model, that appears in the demo video of ver. 1.8.
Unfortunately interactivity enabled only in run-time (untill skp file is not closed) and I don't know yet how to save interaction data to skp file (maybe it's not possible at all). So if you want to play with initial faces, then it is necessary to make new blended object.

Ver. 1.8. does not support interaction with curves yet, because it is difficult to get the curve object from the Sketchup.active_model... The point is that active_model contains no curves (curve is just a 'conceptual entity' "all circles, arcs, and arbitrary curves are really just edges that are bound together in sequence"). So it's necessary to perform some tricky things to obtain the certain curve, that you need.
Edges also behave strange: moving of the edge or moving of the edge vertex does not envoke onChangeEntity event handler :?. Only if you change some properties of the edge (for example layer or smoothness), then modify event rises and onChangeEntity envokes.



So ver. 1.8. supports interaction only between 2 faces and face+construction point. I'm not sure if I can solve myself edge and curve problems.
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

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need Authorised SketchUp Training by experts in various disciplines? Check out our Training details.

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: DavorP, Ptxi, TMLEE and 9 guests