ScriptSpot home

Script

Quad Cylinder

By Vojtech Cada · 2016-04-26

Community compatibilityNo compatibility reports yet

No reports yet for the available releases.

Community reviewsNo reviews yet.
Version
0.04a
3ds Max compatibility
Unknown
How compatibility works

Choose the 3ds Max version you use. For example, selecting 2020 puts direct matches for 2020 first, followed by listings that say a supported version or newer.

Scripts that only mention an older version can still appear as “2020 unconfirmed.” Listings that rule out 2020 are excluded. Use “Show scripts with unconfirmed compatibility” to also see listings without a clear match.

Community reports show what worked for members on a specific release. They’re separate from the listing’s compatibility claims and don’t change the filter.

Original version requirement
3ds Max 9, VIZ 2008
Other software required
for Max 9/VIZ 2008 AVGuard extension is needed
Legacy votes
17

Release history

Tags: primitive, quad, Cylinder, scripted plugin

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.

More by Vojtech Cada

View all contributions
Comments (15)

Comment policy

Tony

Issues with Sphere Cap Max 2024

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
Tony

Issues with Sphere Cap Max 2024

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
Tony

Issues with Sphere Cap Max 2024

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

It doesn't seem to work in Max 2024 ?

Reply to sampei
Vojtech Cada

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.

FishMan

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

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.

vusta

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

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) ?

Reply to vusta
Vojtech Cada

Much easier than what you described

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
John

This is excellent.

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

Vidi

.

Wonderful! Thanks

vusta

YES finally...no more polar verts

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

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

Reply to vusta
Vojtech Cada

My pleasure

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...

Reply to vusta
Vojtech Cada

Sphere Cap

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.