[Plugin] Bezier Patch v1.1

[Plugin] Bezier Patch v1.1

Postby ngon » Sat Jan 26, 2008 10:36 pm

Hello,

Attached is a Bezier patch creator, adding a new item to the Draw menu. It has some fixes and improvements over the first release, which I had posted a while back at the forums at sketchup.com, but those seem to be down now. The main changes are:

o Patch would sometimes not appear where you first drew it. This is fixed.
o A Bezier parameters dialog appears when you first select the tool.
o Removed the Bezier Grid menu item (an edge-only version of the patch), though this may be restored if you wish by uncommenting a line in the bez-patch.rb file.

To use:
After unzipping the zip or tar file, a bez-patch-1.1/ directory is created. Move the two folders inside it into your plugins directory. In Sketchup, type at the Ruby console

> load 'bez-patch/bez-patch.rb'

and you'll be ready to go. (If you always want it available on startup, move the file bez-patch/bez-patch.rb up one folder so that it is in the base plugins/ directory.) After selecting Draw > Bezier Patch, a parameters dialog appears with: U Order, V Order, U Steps, V Steps. U & V refer to the 2D patch axes; Order refers to the number of control points in each direction; and Steps are the number of faces created in each direction. After clicking OK, click once to place a corner, move and click again to place another corner, then move and click again to pull the second dimension. Right-click on patch to edit the control points. Individual points and lines between points may be dragged. Using the arrow keys while highlighting a control point will lock the axis of movement along one of the major axes. If you later wish to change the number of steps in each direction, use the VCB while in edit mode; order is not changeable after creation.

It does not use any SU6-specific features, so should be fine in SU5.

Cheers,
Victor
1

ngon 
 

Re: Bezier Patch v1.1

Postby fredo6 » Sat Jan 26, 2008 11:28 pm

Great script!
And works fine for me on v6
I gave me some inspiration about what you can do with Sketchup and Ruby, when I redesigned the Bezier curves from the @Last version.

Thanks again

Fredo
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Bezier Patch v1.1

Postby pilou » Sat Jan 26, 2008 11:37 pm

Cool! :enlight:

No preview nurbs or similar for have control points on the curves?
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: Bezier Patch v1.1

Postby Gaieus » Sun Jan 27, 2008 12:48 am

Thanks for the update, Victor!

I've been using this script for a while and have always enjoyed it.
0
User avatar
Gaieus 
 

Re: [Plugin] Bezier Patch v1.1

Postby darkhelmet » Sat May 24, 2008 10:28 pm

I downloaded the bezier.rb file from http://sketchup.google.com/download/rubyscripts.html, copied the file to \program files\sketchup\plugins\ but I never see a new icon on the Draw menu.

What am I doing wrong?

SU v6.4.112
0

darkhelmet 
 

Re: [Plugin] Bezier Patch v1.1

Postby remus » Sat May 24, 2008 10:30 pm

have you restarted sketchup since you installed the plugin? if not you need to.
0

remus 
 

Re: [Plugin] Bezier Patch v1.1

Postby ely862me » Sun May 25, 2008 12:31 am

for me isn t working..unzipped in plugins folder..should i do something else?

after typeing that in ruby console appeared this

> load 'bez-patch/bez-patch.rb'
Error: #<SyntaxError: (eval):149: compile error
(eval):149: syntax error
> load 'bez-patch/bez-patch.rb'
^>
(eval):149
0
Elisei (sketchupper)
____________________________________________________________
Before no life was done on Earth it was THE LIFE ITSELF...GOD
Come and See EliseiDesign
User avatar
ely862me 
Top SketchUcator
 

Re: [Plugin] Bezier Patch v1.1

Postby Julius » Sun May 25, 2008 12:46 am

yes, you should copy the file "bez-patch.rb" from the "bez-patch" folder to the "plugins" folder.
then you should see the control in Draw -> Bezier Patch
ngon wrote:
To use:
If you always want it available on startup, move the file bez-patch/bez-patch.rb up one folder so that it is in the base plugins/ directory.) After selecting Draw > Bezier Patch...
0

Julius 
 

Re: [Plugin] Bezier Patch v1.1

Postby ely862me » Sun May 25, 2008 12:53 am

thx a lot julius,it s finally working,and not at last thx Victor
0
Elisei (sketchupper)
____________________________________________________________
Before no life was done on Earth it was THE LIFE ITSELF...GOD
Come and See EliseiDesign
User avatar
ely862me 
Top SketchUcator
 

Re: [Plugin] Bezier Patch v1.1

Postby darkhelmet » Sun May 25, 2008 1:11 am

It was probably installed all along - I was looking for a tool icon within the Draw toolbar. Operates kinda weird compared to Illustrator's bezier tools.

Thanks.
0

darkhelmet 
 

Re: [Plugin] Bezier Patch v1.1

Postby Julius » Sun May 25, 2008 1:33 am

there is also another toll for making bezier curves called Bezier spline. you can find it here: http://www.crai.archi.fr/RubyLibraryDep ... i_page.htm
0

Julius 
 

Re: [Plugin] Bezier Patch v1.1

Postby thomthom » Tue Dec 08, 2009 10:27 pm

Interesting. I wasn't aware of this plugin. I just begun work on my own Bezier Patch tool.
Is this being developed any more?
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] Bezier Patch v1.1

Postby Gaieus » Wed Dec 09, 2009 12:02 am

I don't think so. The original author posted it in the old @Last forums saying (something like) "he needed it for a certain task and sharing it but won't be interested in developing it nor any further support..."
0
User avatar
Gaieus 
 

Re: [Plugin] Bezier Patch v1.1

Postby bojanav » Thu Nov 25, 2010 12:13 am

hi, guys! pls help... i did everything as u said, and it IS working, ie, it loads etc, and u can draw the patch no problem, but when i go into the edit patch mode, all the controlled points are grayed out... u can't move or do anything with them...

tried around 5 more things to try to make it work (copied all files direct into main plugin folder, even tried deleting 'lock axes' script in utilities.... nothing!

any idea why this is not working?

p.s. have bezier splines plug in also - hope its not interfering with it someway...

THANKS!! bojana
0

bojanav 
 

Re: [Plugin] Bezier Patch v1.1

Postby thomthom » Thu Nov 25, 2010 12:35 pm

Could be due to a bug in SU8... I'm not sure. But the Bezier curve plugin from Google also didn't work when you tried to edit in SU8.
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] Bezier Patch v1.1

Postby bojanav » Thu Nov 25, 2010 4:53 pm

well, bezier curve plugin works fine, although only when you rightclick%select 'BZ-edit classic bezier curve' (when you just select 'edit bezier curve' control points stay frozen also....

but which bug?? can i fix it somehow?

if not, is there anywhere to download the working version? (it is just strange, since comments posted under the current plugin were pretty positive ones... so seem that overall, it should work....'

thank you for your reply! bojana


thomthom wrote:Could be due to a bug in SU8... I'm not sure. But the Bezier curve plugin from Google also didn't work when you tried to edit in SU8.
0

bojanav 
 

Re: [Plugin] Bezier Patch v1.1

Postby thomthom » Thu Nov 25, 2010 5:09 pm

bojanav wrote:but which bug?? can i fix it somehow?

It's a bug in SketchUp. Google needs to fix that. However, with Google's Bezier tool I make a patch to work around it: viewtopic.php?f=323&t=30973

As for this Bezier Patch plugin - I don't know. I've not looked at the code.
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] Bezier Patch v1.1

Postby arkarthikn » Sat Aug 09, 2014 8:15 pm

It says "Error Loading File bez-patch.rb
no such file to load -- bez-patch/BezPatch.rb
Kindly Help
0

arkarthikn 
 

Re: [Plugin] Bezier Patch v1.1

Postby pbacot » Sun Aug 10, 2014 6:16 am

I could not get it to work with console so, as suggested, I put bez-patch.rb into the plugin folder (from out of the bez-patch folder) and it worked.

Perhaps you put the wrong file into the plugin folder. It is the hyphenated bez-patch.rb.
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] Bezier Patch v1.1

Postby Dave R » Sun Aug 10, 2014 11:48 am

It looks to me as if this plugin is incorrectly packaged to just run. I made RBZ version of it that loads correctly with Install Extension in SU8M2 and later. It works in SU2014, too.
1
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Bezier Patch v1.1

Postby pbacot » Fri Jan 16, 2015 6:58 pm

Dave R wrote:It looks to me as if this plugin is incorrectly packaged to just run. I made RBZ version of it that loads correctly with Install Extension in SU8M2 and later. It works in SU2014, too.


Yes, I just went to look at this again and, loading the new version from SCF Store, it writes inside an extra folder in the Plugins folder, and won't run. Try Dave's file.
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] Bezier Patch v1.1

Postby Dan Rathbun » Sat Apr 23, 2016 10:44 pm

A SketchupExtension registrar script for the outer "Plugins" folder.
0
    I'm not here much anymore. But a PM will fire email notifications.
    User avatar
    Dan Rathbun 
    PluginStore Author
    PluginStore Author
     

    SketchUcation One-Liner Adverts

    by Ad Machine » 5 minutes ago



    Ad Machine 
    Robot
     



     

    Return to Plugins

    Who is online

    Users browsing this forum: Carto, Google Bot and 13 guests

    Visit our sponsors: