Bezier Surface Editor is now open source!

The issue here is that SketchyPhysics modify the SketchUp Ruby API - and that breaks other extensions. SketchyPhysics is known for a long time to cause clashes.

(Btw, part of that error is missing. When posting errors it’d be good if they where wrapped up as Preformated text: )

I do have about 85+ plug-ins in parallel use including SketchyPhysics,
none of them seems to clash with SketchPhysics’ reinterpretations of
code… but y’re ‘El Programador’… and quite obviously you are right!

But what about your plug-in Vertex Tools ? Does one have to expect
the very same issues when SketchPhysics is plugged in?

And would it make a difference if I’d obtained a SU 2015 Pro license,
with regards to Vertex Tools?

The reason BezierSurface breaks is because it’s calling group.definition before it has any entities added to it. This triggers the bug in the method that SketchyPhysics inject into the API. Other extensions probably call it on groups that have content - so they avoid the issue by sheer luck. That being said. I’m working on catching the error and falling back to an alternative method. Look for an update to TT_Lib2 soon.

Hard to tell. SketchyPhysics makes several changes that interfere with the API. It’s a hit and miss. You’d have to try.

Pro vs Make makes no difference in this case.

Thanks so much for your detailed info!

Although being a limited and not nurbs- but meshbased
solution, SU became a more or less predictable & a real
quick alternative over the years… especially with all the
useful plugins from dedicated programmers like you…
and besides… every CAD Software has its own set of
bugs and weaknesses…so…

I thought about obtaining a legal pro license of SU 2015
just because of it’s advanced / faster shadow rendering
features and because it’s only the newer versions of SU
that ‘Skalp’ is working with… As a mechanical engineer,
the possibility of generating technical drawings with real
sections eventually makes sense, and could trigger me
into buying it…

Yea - on the general I’d recommend upgrading SketchUp. There are so many bug fixes and improvements between SU8 and SU2015. I have extensions coming up that will require minimum SU2014.

Hello Mr Thom. there’s Load Error pop up says:

Error Loading File C:/Users/Seven/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_bezier_surface/core.rb
Error: #<NameError: uninitialized constant TT::Version>
C:/Users/Seven/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_bezier_surface/core.rb:56:in `<module:BezierSurfaceTools>'
C:/Users/Seven/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_bezier_surface/core.rb:33:in `<top (required)>'
C:/PROGRA~1/SketchUp/SKETCH~1/Tools/extensions.rb:197:in `require'
C:/PROGRA~1/SketchUp/SKETCH~1/Tools/extensions.rb:197:in `load'
C:/Users/Seven/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_bezier_surface.rb:42:in `register_extension'
C:/Users/Seven/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_bezier_surface.rb:42:in `<module:BezierSurfaceTools>'
C:/Users/Seven/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_bezier_surface.rb:15:in `<module:Plugins>'
C:/Users/Seven/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_bezier_surface.rb:14:in `<module:TT>'
C:/Users/Seven/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/tt_bezier_surface.rb:13:in `<top (required)>'

“When the control points doesn’t appear, do you see any errors in the Ruby Console if you open it before trying to use the extension?”

when yesterday- (when the control points doesn’t appear) I didn’t see any error. but now… it appear that way (please look at the picture). :scream:

okay, i’m not sure understand that, but in picture above- “TT-Lib2 not installed” is always show up, no matter I already installed that or not. weird isn’t?
oh yes, we are talking about the black one that appear when editing, the black floating toolbar is once appeared. now, like i had shown you in that picture- nothing left there. even the “Create a Quadpatch Bezier Surface” doesn’t appear :frowning:
OMG, am I doing something wrong? Why it all disappear when I open it now?

okay, I’m sorry if it goin this way. Thanks for your good respond. :relieved:

Hmmm… So TT_Lib is installed? Can you check under Preferences > Extensions - find TT_Lib there and report back exactly what version it says it is?

As long as you get those errors where it says that TT_Lib isn’t found then the toolbar and nothing will work.

(Looking closer at your error and screenshot it’s very odd… When the dialog saying TT_Lib2 is not installed the extension should stop trying to load. But for some reason it appear to think TT_Lib is there after all, but it’s clearly not fully loaded because something is missing here…)

^it says 2.9.14 (December 2014), isn’t the newer version of TT_Lib2?

Yes sir, if I load SketchUp carelessly several time, that “Create a Quadpatch Bezier Surface” tool isn’t there and the “TT-Lib2 not installed” is appearing.
However, It will not appear as long as I load it slowly.

hm? I don’t quite understand. How are you loading it “slowly”? Can you provide step by step instructions to what you do when it works and when it doesn’t work?

If it crash again, I just went uninstall TT_Lib, and re-install it again. it works. Looks like sometimes the TT_Lib wasn’t loaded properly.
The other user says it sometimes went error like this. The error is TT_Lib is there, but it’s not fully loaded.
the error happened when I accidentaly open sktchUp like this picture, (open several at once)

That’s very strange. I’ve never seen SketchUp fail to load extensions simply by loading multiple versions.
Btw, which version of SketchUp 2015 are you using? There has been a couple of updates since it’s first release - have you installed these?

I use SU Pro 2014. :frowning:

Are you by any chance some times opening SketchUp by double clicking on SKP files? And are you perhaps also using the first release of SketchUp 2014? There has been a couple of updates to SU2014 that fixed some issues where some extensions would not work if SU was launched via SKP files. What is the exact version number you have installed? (Found in the About dialog.)

i had the same issue and found out that when opening the sketchup as administrator, their is no TT_Lib2 error

Hi,

I wonder if this thread is still active… Thanks Thomthom for your extension, works for me.
I’d like to know if I can control each control points individually, in form of a list: I’m trying to design a complex surface for a CNC machine and being able to enter parameters for each control point individually would make my project much easier. Also, eventually, I’d like to be able to apply transformations of several control points at once…
Best

Owl

I’m afraid the extension have no ability to edit by a list.

Do you have some Ruby experience? In which case I think you would be able to edit the extension to do what you are looking for.

Hey Thom!

Bezier Surface is working in SU2017, except for one small thing: the Dialogue Box is ‘cut off’, and I can’t expand it to see all of the tools. See attachment…

I know you’re not really developing it anymore, but is there any way to fix this??

Let me know. Hope all is well.
Thanks!
Dave.

Hey David. Is that behaviour new in SU2016?

Right now I’m in the middle of packing up all my stuff including my computer as I’ll be moving in a couple of weeks.

Will be a while til I have time to do anything. Meanwhile you can edit editor.rb line 406: https://bitbucket.org/thomthom/bezier-surface/src/9f9a8d9a0634b4502779a6add502d424904f1364/src/tt_bezier_surface/editor.rb?at=default&fileviewer=file-view-default#editor.rb-406


Hello, I really like your development of the plug-in, you are my idol!
Recently I was using Bezier Surface Tools, but I found that there was a bug in the UI UI and only half the content was displayed.

I logged this as https://bitbucket.org/thomthom/bezier-surface/issues/53/toolbar-size-is-wrong