[Plugin] BezierSpline - v2.1a - 01 Nov 18

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby gullfo » Mon Jan 09, 2012 10:51 pm

i actually tried that (remarking out that line) and it still failed. i did reload the libfredo plugin fresh off the board just now (and had tried the beziersplines earlier), same issue, there is no mouse pointer and its the same errors. if i rem out the libfredo.rb, then it works.
0
User avatar
gullfo 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby NickGenerator » Wed Jan 11, 2012 5:30 pm

I am playing around with Bezierspline for a while now and found out that it is really difficult to work with it when you create curves that are not planar. Points simply too often just end somewhere.

That is why I wanted to suggest something.

Is it maybe possible and also useful for others to add the possibility to really select points and then move them by either typing in values, moving sliders, like for x,y and z, or pointing at the destination for this point?

Unfortunately my Python is by far better than my Ruby. All I found out so far is that I cannot simply use a SelectionObserver. But if you don't like my idea it would be great if you could tell me, if there is a way for me to get more control over the points of my curves with an own script.
0

NickGenerator 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby fredo6 » Thu Jan 12, 2012 9:43 pm

NickGenerator wrote:I am playing around with Bezierspline for a while now and found out that it is really difficult to work with it when you create curves that are not planar. Points simply too often just end somewhere.

I know it is not perfect, especially when you point in the empty space.
In the doc, there are some explanation on how to force axes direction when creating and editing the curve, but it may not apply to your case.

A possibility is to pre-mark the control points with Construction points.

Fredo

PS: I am in the course of rewriting this plugin which is my first one. At that time, I had less knowledge about the inference mechanism of Sketchup. I'll keep your comment in mind.
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby NickGenerator » Sun Jan 29, 2012 5:24 am

Fredo6 wrote:PS: I am in the course of rewriting this plugin which is my first one. At that time, I had less knowledge about the inference mechanism of Sketchup. I'll keep your comment in mind.


That sounds great to me.

Next time I ask something stupid, just RTFM me...
0

NickGenerator 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby solid-wood » Thu Feb 09, 2012 12:30 am

Thanks for all the good work You do.
I ended up with a slight problem with the last updates, got a lot of German menys.Not 100% but most of them.
I did instal the english version, and in the right place and way...
I did everything over a few times, but no succes. I do know German...but it would be easier with english.
What could I do to get your menys in english.

Thanks again
0
User avatar
solid-wood 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby fredo6 » Thu Feb 09, 2012 7:22 am

Solid-Wood wrote:Thanks for all the good work You do.
I ended up with a slight problem with the last updates, got a lot of German menys.Not 100% but most of them.

Can you check 2 things:

1) In menu Windows > LibFredo6 Settings... > Set Preferred Languages, what is your setup?

2) can you type in the Ruby Console: Sketchup.get_locale. Is it 'DE'

You simply have one of these set up in German language. As the German translation is incomplete, you get a mix of English and German.

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby voman0100 » Sat Mar 17, 2012 3:44 pm

thanks u so much :thumb: :D
0

voman0100 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby Tetrium » Thu Mar 29, 2012 2:04 pm

Wow! It has portuguese version! nice!!!! :fro:
0

Tetrium 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby vojo » Thu Mar 29, 2012 3:13 pm

New to Sketchup (the UI is really arcane....RPN with hints of the old dec VI editor....between android bugs, chrome crashes and this, google really needs better programmers)
In contrast...your plugins are very very handle....well done...maybe you should go work for google and teach them how to program

Anyway, I think there may be a bug in the bezierspline plugin.

Basically, I am trying to make a cable: block connectors on each end....free flowing soft cable between them.
I want to be able to scale such that block connectors remain same size but move with scale....cable grows or shrinks appropriately
It appears your shear scale (diag blue/green arrows) does this kind of thing.

Basically, I do the following (
-Use polyline to make some irregular path
-Convert to uniform spline (seems to be the only way to get the general / gradual curves I am looking for)
-Use the pipe along the path plugin to make it a cable.
-Use your tools to scale the cable.

The problem is that the control points do not scale with your plugin that is sort of a light green/yellow box) with the uniform bspline itself...so in essence, I get 2 covered lines
- one that the pipe along has turned into a cable...scaled to the new size
- one that is just a simple line with all the control points on it...stayed at original size

I tried ungroup, explode, etc....pretty much no matter what I do, if I delete the control points both the pipe and the control points are erased.

Novice that I am, I could be wrong, but I think this is more on your plugin than on pipe along, since that scales appropriately.
- This may be an artifact of how sketchup handles lines (cant round them, cant thicken them, etc)
- I tried various axis on your shear scale (blue/green diagonal arrow icon)....same behavior regardless.
- your standard scale and sketchup standard scale work fine
- I could be that pipe along only picks up some of your info....so control points not treated a part of the shape...dont know

It almost looks like the plugin(s) treat the control points differently and scaling tools dont recognize them for scaling and such

If there is a better way to make a "pipe" or "cable" with soft rounded bends such that can scale without having to manual move connector blocks....please let me know.
0

vojo 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby fredo6 » Thu Mar 29, 2012 10:37 pm

@vojo,

Unfortunately, Shearing is not part of the standrad Tranformation and SU does not update the Ctrl Points which are stored as attributes of the curve (it does for scaling, rotation and move).

There is little to do with this, except does the shearing first and then draw the Bezier Curve.

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby vojo » Fri Mar 30, 2012 2:29 pm

It turns out its not your pluggin but the other guys issue.....apologies
0

vojo 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby Toni » Fri Apr 06, 2012 8:50 am

Hi!

I recently switched to Mac and I encountered quite a nasty problem. I have the latest plugin and I'm running SU Pro 8.0.something. I flipped back a couple pages but couldn't find anything on this.

Screen shot 2012-04-06 at 10.43.32.png


Screen shot 2012-04-06 at 10.43.44.png
0

Toni 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby thomthom » Fri Apr 06, 2012 10:52 am

Toni wrote:I'm running SU Pro 8.0.something.

Could you update your profile to reflect this please?

What are your system specs?
What OSX version?
What graphic card do you have?
Have you applied all updates?
Does it occur if you disable hardware acceleration?
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] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby Toni » Fri Apr 06, 2012 11:46 am

Behold, it was the HW acceleration. Thanks!
0

Toni 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby thomthom » Fri Apr 06, 2012 11:56 am

Toni wrote:Behold, it was the HW acceleration. Thanks!

No - it is not a fix. Just a debugging method. Without hardware acceleration SketchUp will be terrible slow!
What it means is that there is an issue with your graphics card. If you are lucky, it is just your current driver and you need to update it. If you are unlucky, your graphic card doesn't support all the OpenGL features SketchUp requires.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

suggestion

Postby the.pjt » Fri Jun 08, 2012 7:38 pm

hi dear fredo :) ... is it possible to use you own LIBFREDO abilities to make ONSCREEN tool-buttons for this excellent plugin ?!? .. classic toolbar of BezierSpline has so many butoons and it takes large amount of screen space ..

we want a toolbar with one Icon that runs commands on the screen like your toolsonsurface, curvy loft ,etc

tanks dear fredo ;)
0

the.pjt 
 

Re: suggestion

Postby fredo6 » Sat Jun 09, 2012 9:52 pm

the.pjt wrote:hi dear fredo :) ... is it possible to use you own LIBFREDO abilities to make ONSCREEN tool-buttons for this excellent plugin ?!? .. classic toolbar of BezierSpline has so many butoons and it takes large amount of screen space ..

we want a toolbar with one Icon that runs commands on the screen like your toolsonsurface, curvy loft ,etc

tanks dear fredo ;)

I am redesigning the whole plugin, but I have little time to progress.
I see if I can make an intermediate version with a quick launcher.

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby the.pjt » Sat Jun 09, 2012 10:18 pm

thank a lot feredo ....

when I tried to edit you code and disable some toolbar icons by adding adding # to "toolbar.. .add_item(cmd)" part I was so hard for me to load all commands by menu and load some of them by toolbars .. there is a loop in your algorithm that loades itch components and then makes all UIs ( menus and toolbars ) ....
when I tried to disable a command icon , it disables all .... and when I tried too read your newer plugins they where so complicated for a beginner like me

thanks fredo if you do it ... you are the only one who can change it ... because you are the creator ...

do it soon fredo :D ... thanks again .. for whole plugin ... it brings curves to SU and improved it a lot .... thanks
0

the.pjt 
 

Is this a BUG, or user error?

Postby August » Wed Jul 04, 2012 7:27 am

I think I have found a calculation bug in the the Polyline Segmentor. The last segment seems to come out the wrong length for no apparent reason.

Fredo6's BezierSpline has been used by so many people for so long that I am hesitant to call what I am seeing a bug. But I suspect that it has been there all along. In exploring the manual, tutorials, etc. I have found phrases that take it for granted that this happens when I cannot see the reason for it.

I see descriptions of using the Polyline Divider that say the last segment will not be the same length as the others. That makes sense. The overall length is arbitrary and the segment length is fixed; of course there will be remainder.

But I see phrases that apply that same caveat to the Polyline Segmentor and that does not make sense. You are dividing a curve into a whole number of segments. There should be no remainder. If there is some calculation round off, it should be minuscule, down in the 9th or 10th decimal place. But what I am seeing is an error of nearly FIVE PERCENT.

I draw a Classic Bezier curve and I use Convert to Polyline Segmentor and I specify 32 segments. I would think those would be all the same length, or nearly, and so they are, except the imprecision of the last segment has me baffled about why it would be so different. 31 of the segments are 2.099221" in length and the final segment is 2.005871". That is a 4.65% difference.

Certainly SU Ruby is capable of more precise calculations than seem to be in use here.

That difference is barely noticeable in the curve, but these points will be the reference points for attaching more complicated structures that will come close to each other and I am afraid that when the final construction is done, there will be an aesthetic glitch, at the same level as bad kerning between typeset characters in a title. What is a 5% difference initially could become a much larger difference down the road. And 5% is itself a big enough a difference to see without measuring.

My design calls for repeating the same curve, attaching it to the previous copy, then attaching repeating elements at each curve point. I don't want the spacing of the larger elements to be visibly too tight at each and every inflection point. It will just look wrong.

I tried scaling everything up 10x before I used the Polyline Segmentor and the new numbers were 20.992211 and 20.058708, merely another decimal point of precision in my display. It's not the "too tiny" SU bug or the numbers would have changed a bit. I'm sure the underlying numbers are consistently inconsistent.

So is this a bug in Polyline Segmentor, or is this a necessity? And either way, is there a workaround? Any suggestions welcome.

Thanks,
August

P.S. I am using the very latest BezierSpline, downloaded two days ago, running on Windows 7, SU 8.0.14346, also the latest version.
0
“An idea, like a ghost, must be spoken to a little before it will explain itself.”
-- Charles Dickens

August 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby fredo6 » Wed Jul 04, 2012 9:05 pm

August,

Your remark is stamped with good sense: there is no metaphysical reasons why the last segment should not be equal to the other ones.

Here is a revised algorithm that ensures better accuracy.

I'll published the release soon.

Thanks very much for signaling the problem.

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby August » Fri Jul 06, 2012 9:19 am

Wow. Thank you for such a quick response.

The more I thought about it, the more I began to think that the error could have come from measuring the original, default 20-segment length, dividing that, and applying that new length to the new segments. Going from 20 segments to 32 segments could indeed introduce just that order of magnitude error.

But before I could experiment with that theory, here you are with the problem fixed. Wow.

No point now in my trying to figure out what the issue used to be. :D

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

August 
 

Re: suggestion

Postby panixia » Fri Jul 06, 2012 11:08 am

the.pjt wrote:we want a toolbar with one Icon that runs commands on the screen like your toolsonsurface, curvy loft ,etc

+1 :thumb:
actually the only downside in one of the best plugin ever!
0
User avatar
panixia 
 

Re: suggestion

Postby Dave R » Fri Jul 06, 2012 12:07 pm

panixia wrote:
the.pjt wrote:we want a toolbar with one Icon that runs commands on the screen like your toolsonsurface, curvy loft ,etc

+1 :thumb:
actually the only downside in one of the best plugin ever!


:roll:
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby Jack Camino » Mon Aug 13, 2012 10:57 pm

Hello.
Jack here, new to Sketchup8, plugins, etc. I am designing a guitar and I would really appreciate your help with this and future questions, which are going to be my contribution since at the moment I don't have any answers.
I just downloaded the BezierSpline and installed it to the plugins folder on the macintosh HD so, my question is where is the location of the controls when I am in Sketchup8. Thanks.
0

Jack Camino 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby thomthom » Tue Aug 14, 2012 8:58 am

Jack Camino wrote:Hello.
Jack here, new to Sketchup8, plugins, etc. I am designing a guitar and I would really appreciate your help with this and future questions, which are going to be my contribution since at the moment I don't have any answers.
I just downloaded the BezierSpline and installed it to the plugins folder on the macintosh HD so, my question is where is the location of the controls when I am in Sketchup8. Thanks.

UI.png
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] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby Jack Camino » Tue Aug 14, 2012 5:04 pm

Thanks Thomas.
Let me show you what I have in my computer, see the attached pictures. Also, I don't understand what do you mean when you say remove the icon files in (BZ dir 14 ....images cad father). I guess that is the reason menu draw doesn't show bezier curves and I don't have a BesierSpline toolbar. Can you see the pictures and help me? Thanks.
0

Jack Camino 
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby Dave R » Tue Aug 14, 2012 5:16 pm

You haven't followed the footprint as laid out in the first post.
footprint.png


You've got one too many folder levels. Move the contents of the one indicated into the Plugins folder and get rid of that folder.
BZ1.png


Also go to the SketchUp menu (to the left of File) and click on Preferences>Extensions and tick any and all boxes you find there.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby thomthom » Tue Aug 14, 2012 5:18 pm

Installation.png


OSX wraps all extracted ZIPs into a folder with the same name as the ZIP. It is the content of that folder that should be in the Plugins folder. So you want to extract to a temp location, then move the correct files.

You can use this utility to make it easier to install correctly:
viewtopic.php?t=42315

Also, here's an article on installing plugins:
http://www.thomthom.net/thoughts/2012/0 ... -sketchup/

(Dave beat me to it.)
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] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby Dave R » Tue Aug 14, 2012 5:21 pm

thomthom wrote:(Dave beat me to it.)


But you were more thorough.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] BezierSpline v1.4f - 23 Jan 11 (upgrade SU8)

Postby jcarter » Wed Sep 12, 2012 2:59 pm

Thanks, hopefully responding allows me to download this tool!
0

jcarter 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

cron

Who is online

Users browsing this forum: Ilimil, youngdrafter21 and 172 guests

Visit our sponsors: