SketchUcation Plugin Store

 

 

[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
Please, register (free) to access all the attachments on the forums.
ngon
 
Posts: 1
Joined: Sun Jan 20, 2008 1:21 am

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
Fredo6
Top SketchUcator
 
Posts: 1664
Joined: Mon Nov 12, 2007 9:07 pm

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?
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10034
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

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.
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27610
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] 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
darkhelmet
 
Posts: 19
Joined: Sat May 24, 2008 10:09 pm

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.
remus
 
Posts: 8055
Joined: Fri Nov 30, 2007 8:48 am
Location: UK
Name: 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
Elisei (sketchupper)
____________________________________________________________
Before no life was done on Earth it was THE LIFE ITSELF...GOD
Come and See EliseiDesign
User avatar
ely862me
Top SketchUcator
 
Posts: 1449
Joined: Mon Jan 21, 2008 6:54 pm
Location: Romania
Name: Elisei
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

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...
Julius
 
Posts: 224
Joined: Thu Dec 06, 2007 5:30 pm
Location: Italy

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
Elisei (sketchupper)
____________________________________________________________
Before no life was done on Earth it was THE LIFE ITSELF...GOD
Come and See EliseiDesign
User avatar
ely862me
Top SketchUcator
 
Posts: 1449
Joined: Mon Jan 21, 2008 6:54 pm
Location: Romania
Name: Elisei
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

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.
darkhelmet
 
Posts: 19
Joined: Sat May 24, 2008 10:09 pm

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
Julius
 
Posts: 224
Joined: Thu Dec 06, 2007 5:30 pm
Location: Italy

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?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17562
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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..."
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27610
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] 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
bojanav
 
Posts: 2
Joined: Sun Nov 21, 2010 6:41 pm
Name: bojana

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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17562
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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.
bojanav
 
Posts: 2
Joined: Sun Nov 21, 2010 6:41 pm
Name: bojana

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.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17562
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Keyframe Animation plugin - animate your SketchUp model by adding movement to any object.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: akanoe, Bing [Bot], guan, hebeijianke, Juantxo, nyzyc, radiacor and 15 guests