ScriptSpot

Script

Extended Cylinder+Cog

By brttd · 2012-10-11

Version
3.0-1.5
Version requirement
2013
Date updated
2012-12-19
Votes
4
Description

 

3ds max scripted plugin's

Cog:

Creates cogs, with easy to use settings:

  • Radius, Height, Sides
  • Gear Height-Scale
  • Gap
  • Inset, Chamfer
  • Angled
  • Smooth edge-top/bottom (!)Removed in latest version, hopefully will be added back soon(!)

E-Cylinder:

Creates standard cylinder whos faces are extruded by user defined settings:

  • Height/Direction/Scale of extrusion
  • Starting value of loop, with: 0+, cylinder sides+, cylinder sides*
  • Ending value of loop, with 0+, cylinder sides+, cylinder sides*
  • Step skipping
  • Up to 4 faces extruded per loop, with each face being the loop number + defined value
  • Presets: All Cog, Angled Cog , Top/Bottom Cog,  Shuriken

Additional Info

Usage:

Cog:

When the plugin is loaded, it appears in the "Cheese3000 Primitives" section of 3ds Max's shapes.

To creates, click and drag to set radius, then set the height and click, then set the gear height and click again the end creation.

E-Cylinder:

When the plugin is loaded, it appears in the "Extended Primitives" section of 3ds Max's shapes.

To creates, click and drag to set radius, then set the height and click, then set the extrusion height and click again the end creation.

In "Extrusions" you can edit the settings of the extrude operations, Height, Scale, Direction and the faces to extrude.

In "Loop Parameters" you can edit the loop, its starting point, ending point and how much it skips.

Examples:

WARNINGS (Cog only)
Using top/bottom smoothing with larger then 0 Gap may result in unwanted smoothing groups.
Using Chamfer with larger then 0 Gap will result in unwanted edges being chamfered.
Using Chamfer and Angled will result in unwanted edges being chamfered.
Using Inset and Angled may result in deformation around gears.

Videos
Attachments

Tags: Cylinder, extended, Cog, gear

Comments (20)

kavek · 2016-03-03

it doesn't works with 2012 max

brttd · 2016-03-05

Sorry, I haven't looked at, or updated the code for several years, so I am not sure what the problem could be, or how to fix it.

Max 2013?

GODLIKE · 2014-10-12

Thank you very much for your work, dude :)

brttd · 2014-10-13

I made this quite a long time ago, so I no longer have max 2013, nor am I sure if it works in that version, sorry.

E-Cylinder.ms

mandor · 2013-08-24

thanks for the quick improvement
it runs
but no chamfer
strange behavior with 3: Loop and 4: Loop

see picture

best mandor

i use 3D MAX 2011 and 3D MAX 9 no different

brttd · 2013-08-24

Only Cog has a chamfer option(I would recommend using cog instead of E-Cylinder, E-Cylinder is more a of test).
Each time the loop is executed, 0-4 faces are extruded, the loop number + a defined variable.
With the settings you have, I cant see a problem with the result, again, its more of a test, Cog has clearer settings, and produces better results.

Only Cog has a chamfer

mandor · 2013-08-25

thank you for the quick feedback

i saw the chamfer in your demo Video for E-Cylinder

with cog no problems

thank you for your scripts und your work

best

mandor

brttd · 2013-08-26

There is no chamfer, its the extrusion scale your seeing.

extended-cylinder_V3.ms - Syntax error on line 95

mandor · 2013-08-24

-- Error occurred during fileIn in
-- Error occurred in anonymous codeblock; filename: C:\Program Files\Autodesk\3ds Max 2011\Scripts\extended-cylinder_v3.ms; position: 4629; line: 95
>> MAXScript FileIn Exception: -- Syntax error: at keyword parameter, expected name
-- In line: label lbl6 prst1 pos:[ <<
-- Error occurred during fileIn in
-- Error occurred in anonymous codeblock; filename: C:\Program Files\Autodesk\3ds Max 2011\Scripts\extended-cylinder_v3.ms; position: 4628; line: 95
>> MAXScript FileIn Exception: -- Syntax error: at string, expected name
-- In line: label lbl6 prst1 "" p <<

brttd · 2013-08-24

What version of max are you using?(for me no errors come up).
However, I have updated it, it should work fine now.

Cog Updated

brttd · 2013-01-07

V1.5
Changed chamfer, now works a lot better
Added cutting, note that custom objects will be taken as if they were at the same position as the cog.
Changed angled, now works with gap and chamfer(only if gap is 0).
Changed where the original and boxes/cylinders meshes are taken from, thanks to Anubis.
Removed smoothing options, they will(hopefully) be added in later a version.

E-Cylinder V3.0

brttd · 2012-12-19

Updated E-Cylinder.
Preset's are now located in the "About - presets" rollout, aswell as a Use and Reset button. To view next/previous preset, press the up/down arrow next to the checkbutton(which hides/shows presets)

Smoothing is no longer a option, if you want the original cylinder to be smoothed edit line 211.

Advanced Parameters has been split into 2, Extrusions and Loop parameters.

brttd · 2012-10-30

Updated, split into 2 Scripts
(E-Cylinder has not been changed)
V-1(Cog)
Changed Gear Scale.
Added Gear Angle
Added Gear Inset
Added Gear Chamfer
Added Smooth edges
Added Smooth top/bottom

Edit:
Images and video added.

New version soon

brttd · 2012-10-29

Im working on a new version, which should(hopefully) be done soon.

Not succeding

brttd · 2012-10-13

Im not really succeding with either(smoothing, fillet) so Im going to go back to working on the scene the script was initially written for, and then come back and see if I can do any better.

barigazy · 2012-10-13

Good decision. Filleting and smoothing are not easy task

+1

barigazy · 2012-10-12

Very cool s-plugin,man.

New version-Thanks

brttd · 2012-10-12

Thanks, and a new version will be out soon.

Now is even better, nice

barigazy · 2012-10-13

Now is even better, good job.
Some fillet operation on extruded parts it would be nice to.
Similar as *Fillet Radius 1* operation of Star shape.

brttd · 2012-10-13

"Now is even better, good job.
Some fillet operation on extruded parts it would be nice to.
Similar as *Fillet Radius 1* operation of Star shape."

Thanks, I have been trying (without much success) to set the top/bottom faces(including faces on top of the gears) as smoothing groups, I'll see about fillet.