PDA

View Full Version : Script :: Nuts & Bolts v0.1


xcvbnm
11-29-2010, 05:53 PM
I've started scripting again after a long gap. Here is one I made to refresh myself - Nuts & Bolts :)
It creates detailed models of nuts and bolts for engineering drawing purposes (or any other purpose). It even creates a text marking on the head of the bolt. There are many parameters which you can change to create a variety of nuts & bolts.
Tested with Max9.

Download
http://www.mediafire.com/?up4124je4td4clm

Demo
http://img338.imageshack.us/img338/7725/nbtest02.jpg

xcvbnm
11-29-2010, 06:28 PM
Another angle

http://img823.imageshack.us/img823/4629/nbtest03.jpg

TheGrak
11-29-2010, 06:36 PM
Nice script! :)
I took a look at the code and saw you were using lots of globals. Other scripts that are running can overwrite those globals and then your script doesn't work anymore, so it's best not to declare lots of globals. I modified your script, changing the globals to locals and also wrapped the code up in (). Here ya go:


( --start script
--locals
local headht = undefined
local headdia = undefined
local boltht = undefined
local boltdia = undefined
local thrdht = undefined
local thrddep = undefined
local thrdden = undefined
local nutht = undefined
local nutdia1 = undefined
local nutdia2 = undefined
local mtext = undefined
local alltext = undefined
local nutthrddep = undefined
local nutthrdden = undefined
...rest of script code
CreateDialog NABRollout
) --close script

sandykoufax
11-30-2010, 01:28 AM
wow, very nice!

xcvbnm
11-30-2010, 01:36 AM
Thanks for the tip Garrick !
Will tidy it up in ver 0.2.

Furball89
11-30-2010, 07:01 AM
I've started scripting again after a long gap. Here is one I made to refresh myself - Nuts & Bolts :)
It creates detailed models of nuts and bolts for engineering drawing purposes (or any other purpose). It even creates a text marking on the head of the bolt. There are many parameters which you can change to create a variety of nuts & bolts.
Tested with Max9.

Download
http://www.mediafire.com/?up4124je4td4clm


cool :thumbsup: thanks for sharing.

CGTalk Moderation
11-30-2010, 07:01 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.