ScriptSpot

Script

Quad Cylinder

By Swordslayer · Credited author: Vojtech Cada · 2016-04-26

Version
0.04a
Version requirement
3ds Max 9, VIZ 2008
Other software required
for Max 9/VIZ 2008 AVGuard extension is needed
Votes
17
Description

Since I've written a few functions to make my life easier while working on the Gear primitive (plus one that I later discarded, intended to fill holes), I figured I could just as well make a quad cylinder as a much simpler example how to tie these functions together. Enjoy and feel free to rip the code apart and reuse it.

Additional Info

Installation: Copy the .ms file to your scripts\startup folder or run as a script if you only want to try it out. The object primitive will be available under Examples in the Create panel.

Attachments

Tags: primitive, quad, Cylinder, scripted plugin

Comments (15)

Issues with Sphere Cap Max 2024

tony07 · 2024-04-04

When using the Sphere cap method, the corner vertices are in different locations. I'll assume height from the sphere itself, so it creates some sort of hollow or pulling effect.

See image.

Attachments

Issues with Sphere Cap Max 2024

tony07 · 2024-04-04

When using the Sphere cap method, the corner vertices are in different locations. I'll assume height from the sphere itself, so it creates some sort of hollow or pulling effect.

See image.

Attachments

Issues with Sphere Cap Max 2024

tony07 · 2024-04-04

Hello there, thanks for the script, unfortunately i ran in an issue When using the Sphere cap method, the corner vertices are in different locations. I'll assume height from the sphere itself, so it creates some sort of hollow or pulling effect.

See image.

Attachments

sampei · 2023-11-12

It doesn't seem to work in Max 2024 ?

Swordslayer · 2023-11-12

Works as expected in 2024, you will find it in the Examples category, not under Standard Primitives. Maybe that's the step you're missing.

sampei · 2023-11-18

indeed, thanks!

"Remove quad cap" and "Save as default"?

FishMan · 2020-02-15

I wonder could you also add ability to remove quad cap?
This will be handy for complete replace standard cylinders with yours.
I mean sometimes you don't need complex cap on cylinders (e.g. making lowpoly for games).

Also Save as Default for all the settings will be cool.

ok...now how hard is it to create the cap only (ie. height 0)

vusta · 2016-04-29

then instance it, rotate it 180, weld (assuming you've removed the bottom faces) and voila you have a quad sphere (that I didn't have to Spherify from a cube) ?

Much easier than what you described

Swordslayer · 2016-04-29

Instead of making the bottom, creating sides and then capping the top vertex loop, you'd just make the center vertex loop, cap the top, cap the bottom. No need to weld anything 😎 See the attached file (no cleanup, just a half-sized version of the quad cylinder).

Anyway, what's the use for a full quad sphere? Never used it myself (well, only to cap cylindrical parts - and for that, there's the quad cylinder).

Attachments

thanks again...

vusta · 2016-05-01

...

This is excellent.

luxxeon · 2016-04-28

A very useful, and welcome addition to my primitives collection. The spherical cap is very handy for a variety of things. Well done.

.

vidivini500 · 2016-04-27

Wonderful! Thanks

YES finally...no more polar verts

vusta · 2016-04-27

Thanks very much...not that I can read much maxscript...

(now if I spherify this, would it be better than spherifying a cube...)

My pleasure

Swordslayer · 2016-04-27

Think of the functions as nodes and there you have it :) I might add a hemisphere full-quad cap, that could be interesting - thanks for the indirect idea. Any clue what to name that switch/feature? It's always these little details that I spend most time on, should it be radioButtons or checkBox, what to call it, and so on...

Sphere Cap

Swordslayer · 2016-04-27

Rejoice! I've added the spherical cap functionality. With a switch you can now make the top cap flat or spherical. I might update the gif tomorrow, no access to max now.