[Plugin] Script for making of logs

[Plugin] Script for making of logs

Postby not registered yet » Sun Nov 25, 2007 9:23 am

I try to help to my friend to make this script
But we have problem with: how to make dap between logs?
How to make curve, which will be intesect and divide log into 2?
And need some cleaning work for deleting bottom part.
See in foto and screenshot
http://www.srub-stroi.ru/image/113.jpg
http://www.3dcenter.ru/forum/uploads/po ... 609123.jpg
script in attach
---
I Thank you for future advices
Ilay

[spire7k]
0

not registered yet 
 

Re: Script for making of logs

Postby tomot » Sun Nov 25, 2007 9:24 am

I looked at your script. you used the circle and then extruded it using push pull.
As far as I know you cant edit the circle. you should construct the log profile
using 2 opposing arcs, with 2 connecting lines for the flat top and btm. of the log.
when you have that new profile, then you can use push pull
0

tomot 
PluginStore Author
PluginStore Author
 

Re: Script for making of logs

Postby todd burch » Sun Nov 25, 2007 9:26 am

I didn't look at the script, but I can tell from your picture what you are trying to do.

First, draw the circle for the end of the log. Then draw an interior arc at the bottom of the circle which would represent the portion of the log that you would cut away. Then, remove the lowermost section of the circle to create the final profile you need. Then, pushpull it.

Todd

sas/Ruby/Picture%201.png
0

todd burch 
 

Re: Script for making of logs

Postby TIG » Sun Nov 25, 2007 9:27 am

If it's too difficult to code in Ruby (though drawing two coplanar arcs that will face doesn't seem that impossible ?), then why not change tack and follow Didier's example in his 'Balustrade.rb' script (or even Todd's 3Dtext tool) ?

This method allows you to draw any section you like... In your case you'd draw up a a set of simple outlines with the curved top and the bottom slot etc, with a face centred at 0,0,0... and then save them as say log300,skp, log400.skp etc. These are the 'component' "log" faces your script will load into the model... as you might choose from a dialog's list (which itself is made by looking into your ../Plugins/../Logs/ folder and listing its current contents - that way you can add to/subtract from the available log section component faces as you wish). Your script would then place the desired face component and explode it, then take its face and pushpull it by the amount you specified in the other entry in the dialog...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Script for making of logs

Postby tomot » Sun Nov 25, 2007 9:28 am

there are Ruby coding examples of how to draw arcs and lines and then making them into a face
have a look at SteelSections.rb
0

tomot 
PluginStore Author
PluginStore Author
 

Re: Script for making of logs

Postby not registered yet » Sun Nov 25, 2007 9:28 am

tomot, Todd, TIG thank you!
I will try to make it as TIG said...but i still dream about magic-ruby all-making-button - "push it' and you get log wall with daps and ect. :) )

[spire7k]
0

not registered yet 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: zul6041 and 23 guests

Visit our sponsors: