CGTalk > Software > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
reply share thread « Previous Thread | Next Thread »
 
Thread Tools Search this Thread Display Modes
Old 06-13-2005, 07:22 AM   #1
erilaz
Stealthy Tea Monkey
 
erilaz's Avatar
portfolio
Martin Brennand
VFX Artist
Melbourne, Australia
 
Join Date: Jun 2002
Posts: 13,756
CGTALK MAXSCRIPT CHALLENGE - Topics and Suggestions

The weekly maxscript challenge is to encourage scripters to think about new ways of tackling problems in day to day scripting. I'll post up a new challenge each week, with basic guidlines and rules.

What I need however, is ideas from you. I've got a bunch of them stored up in my head, but they'll dry up eventually. I'd like thoughts on topics, rules and ways of tackling the challenges. Think of this as a scripting melting pot for each challenge.

Have fun!

The challenges so far:
CgTalk Maxscript Challenge 001: "Make a Dining Table"
CgTalk Maxscript Challenge 002: "Split it up"
CgTalk Maxscript Challenge 003: "Foot Prints"
CgTalk Maxscript Challenge 004: "Zipper Up"
CgTalk Maxscript Challenge 005: "Lightning Bolts"
CgTalk Maxscript Challenge 006: "Object Photo Album"
CgTalk Maxscript Challenge 007: "Laser wars"
CgTalk Maxscript Challenge 008: "BACK TO BASICS: Bitmap to Planes"
CgTalk Maxscript Challenge 009: "BACK TO BASICS: Flickering light"
CgTalk Maxscript Challenge 010: "BACK TO BASICS: Random Concept Creator"
CgTalk Maxscript Challenge 011: "Circular Array Tool"
CgTalk Maxscript Challenge 012: "Corner Placer"
CgTalk Maxscript Challenge 013: "BACK TO BASICS: Scene graph"
CgTalk Maxscript Challenge 014: "Spider Web"
CgTalk Maxscript Challenge 015: "Automated Motions"
CgTalk Maxscript Challenge 016: "L-Systems!"
CgTalk Maxscript Challenge 017: "Project Management"
CgTalk Maxscript Challenge 018: "Wear and Tear"
CgTalk Maxscript Challenge 019: "Fun and Games"
CgTalk Maxscript Challenge 020: "Build a Better Tool"
CgTalk Maxscript Challenge 021: "More Information?"
CgTalk Maxscript Challenge 022: "Particles"
CgTalk Maxscript Challenge 023: "BACK TO BASICS: Simple Rig Generator"
__________________
"There Really is No Secret"
Martin Brennand - mocha Product Manager - Imagineer Systems

Last edited by erilaz : 05-07-2009 at 03:38 PM.
 
Old 06-14-2005, 05:46 AM   #2
Wahooney
Demon Onion Slayer
 
Wahooney's Avatar
portfolio
Keith Boshoff
3D Artist - Programmer - Scribe - Blender Wannabe - Max Enthusiast
Durban, South Africa
 
Join Date: May 2004
Posts: 976
Send a message via MSN to Wahooney
The Wahooney's suggestions.
  1. An image viewer (ala ACDSee) complete with treeview for the harddrives and folders. Must have a preview block.
  2. Render time "Grey Render".
  3. Simple file versioning system. With checking in/out of files.
  4. Vertex Lock, ala XSI.
__________________
||||| www.wahooney.net |||||
Head Towards the Light

Learning to use Blender3d
 
Old 06-14-2005, 11:48 AM   #3
j-man
in 3D!
 
j-man's Avatar
portfolio
Joshua Newman
Director
MESHROOM
London, United Kingdom
 
Join Date: Apr 2005
Posts: 1,345
Send a message via MSN to j-man
whoa, an image viewer, sounds a little complicated for a short challenge! I was thinking of smaller quick things.

A file versioning system is a good idea, some other interesting things might just be functions, like matrix rotations (ie rotating an object, not the pivot) or maybe a render effect.

I'll see what else I can think of.

J.
 
Old 06-14-2005, 02:31 PM   #4
Bobo
Krakatoa Guy
 
Bobo's Avatar
Borislav Petrov
Product Specialist
Thinkbox Software
Vancouver, Canada
 
Join Date: Mar 2002
Posts: 5,321
Quote:
Originally Posted by Wahooney
The Wahooney's suggestions
  1. ...
  2. Render time "Grey Render".




Unfortunately, this is already in the MAXScript Reference, only 23 lines of code. I am afraid this would be too easy and there are not too many ways to skin the cat in this case...
 
Old 06-15-2005, 06:33 AM   #5
Wahooney
Demon Onion Slayer
 
Wahooney's Avatar
portfolio
Keith Boshoff
3D Artist - Programmer - Scribe - Blender Wannabe - Max Enthusiast
Durban, South Africa
 
Join Date: May 2004
Posts: 976
Send a message via MSN to Wahooney
Quote:
Originally Posted by Bobo
Unfortunately, this is already in the MAXScript Reference, only 23 lines of code. I am afraid this would be too easy and there are not too many ways to skin the cat in this case...


Do you mean the Monochrome Effect? That's not what I'm talking about. I'm talking about something like Brazil's Global Material Replacement (White Plaster in particular) but for the Scanline Renderer.
__________________
||||| www.wahooney.net |||||
Head Towards the Light

Learning to use Blender3d
 
Old 06-15-2005, 03:03 PM   #6
Bobo
Krakatoa Guy
 
Bobo's Avatar
Borislav Petrov
Product Specialist
Thinkbox Software
Vancouver, Canada
 
Join Date: Mar 2002
Posts: 5,321
Quote:
Originally Posted by Wahooney
Do you mean the Monochrome Effect? That's not what I'm talking about. I'm talking about something like Brazil's Global Material Replacement (White Plaster in particular) but for the Scanline Renderer.


Well, that is better, and there is a good reference example in How To... for it, it just does not change materials.

Should be less than 10 lines of code I think, but much more fun
 
Old 06-20-2005, 04:29 PM   #7
j-man
in 3D!
 
j-man's Avatar
portfolio
Joshua Newman
Director
MESHROOM
London, United Kingdom
 
Join Date: Apr 2005
Posts: 1,345
Send a message via MSN to j-man
Hey scripteroonies, I hate to sound too eager but, well I am! where's the new challenge!!


J.
__________________
www.joshuanewman.net
 
Old 06-20-2005, 11:46 PM   #8
erilaz
Stealthy Tea Monkey
 
erilaz's Avatar
portfolio
Martin Brennand
VFX Artist
Melbourne, Australia
 
Join Date: Jun 2002
Posts: 13,756
The new challenge will be up shortly.
__________________
"There Really is No Secret"
Martin Brennand - mocha Product Manager - Imagineer Systems
 
Old 06-27-2005, 01:09 AM   #9
erilaz
Stealthy Tea Monkey
 
erilaz's Avatar
portfolio
Martin Brennand
VFX Artist
Melbourne, Australia
 
Join Date: Jun 2002
Posts: 13,756
Nore topics please everyone! The more creative ideas we have the better!
__________________
"There Really is No Secret"
Martin Brennand - mocha Product Manager - Imagineer Systems
 
Old 06-27-2005, 04:24 AM   #10
galagast
Forlorn Battle Acolyte
 
galagast's Avatar
Jeff Lim
Philippines
 
Join Date: Oct 2004
Posts: 572
some suggestions:
1. City Maker (Cityscape)
- probably have a random building maker, with random position, random designs, random materials etc.. (greeble?)

2. Max Explorer
- a max version of the windows explorer (lets you browse folders and files etc)
- include as many features as you can like copy, paste, arrange, folder icons etc...

3. Guessing Game Script (Hide-a-coin-under-three-cups-and-shuffle-it-game)
- I really dont know what you call this game, in the real world, you usually would have 3 cups turned upside down, then a person would have hid a coin inside one, thus shuffle it, you'll then have to guess where the coin went. kinda like just assigning a random position for it or something... it could just be a quick start for creating maxscript games...

4. Randomizer
- random position, rotation, scale
- able to add controllers, and randomize them also
- randomize vertex position
- randomize material id assignments
- randomze object selections, face selection, vertex selections etc...
- randomize anything!

5. Light Control
- given a default scene, probably a room with some elements
- with a script, one would control light placement, intensity, colors, etc.. basically set up the mood of the room through script...

6. Transformers
- transform a basic box into a robot (hehe)
- id suggest using sliders... slide em up or down to transform from a box to a robot.

7. Scripted Material -> Smoke
- can be easily applied to a facing particle

8. Scripted Object -> A New Kind of Teapot!
- or probably just scripted cups, plates and tomblers etc...

ok.. running out of ideas....


I would also like to suggest that challengers indicate which max version they are using, sometimes some scripts won't work with other versions...
 
Old 06-27-2005, 10:55 AM   #11
JHN
maxscript/c# lover
 
JHN's Avatar
Johan Boekhoven
Technical Artist
nmtrix.com
Netherlands
 
Join Date: Apr 2002
Posts: 1,714
More ideas...

1.How about a Non Liniear Animation Mixer Utlity device ..oh wait.. didn't... hmm

2.An interactive beveler with drawing capability's to draw branches on trees etc. LW has a plugin for that..

3.An extended Custom Attribute editor, that let's you insert/edit scripts in a CA

4.FindMayaOnThisSystemAndTotallyUninstallIt-andQuicktimeToo script

One of my favourites would be a shaderOverride
5.shaderOverride would take the shading properties of one material, but let's you use maps/materials of an other material, completely take shading and texturing apart.

6.Complete rig existing of only parametric modifiers for skin (like bend/twist/stretch etc) and only Nulls to control them (no FFD's though!) ... hmm

7.Greeble that does subdivide

Well, I guess these are more or less my wishes... thought I would chip in some..

Cheers,
Johan
__________________
Online: LinkedIn | blog | nmtrix.com
Code: mxs+.net | c# | mb-python | php | html+js | mysql | python
 
Old 06-27-2005, 11:30 AM   #12
Xlars
Veteran
 
Xlars's Avatar
portfolio
Lars Bjorstrup
Freelance illustrator
Hellerup, Denmark
 
Join Date: Nov 2003
Posts: 74
Here are my suggestions (not sure how many already exist as scripts, but never the less some scripts I think it would be fun to make .. and use):

(a) STONE MODELLER
A script to model a stone (or many different stones) easely .. and maybe adding material IDs. Could be implemented using modifiers like bend, twist, taper etc. randomly, and/or as a new "Stone" modifier

(b) BOOK MODELLER
A script to model a book, with options for height, width, thickness etc. Maybe even options to have it open and turn a page or two?

(c) BOOK SHELF MODELLER
A script to build a bookshelf full of different sized books.

(d) LABYRINTH BUILDER
I remember that I once saw some algorithms to build labyrints (unfortunately I dont remember where), but thought it would be so cool to have a MaxScript build a labyrinth in 3D.

(e) PIPE BUILDER
A script to build a system of pipes like a mad plumber

(f) INTERACTIVE SPRAY CAN
A script to randomly "spray" small objects on a given mesh (like a spray can), using the mouse movement from the user.

(g) 3D CHART ANIMATION
A script to make a 3D Chart diagram with those colored columns, eg. reading data from a spredsheet.. making a small animation of the changes in the diagram (based on the spreadsheet values).

(h) BASIC 3 POINT LIGHT
A script to create a camera from the current view and then place three lights (key, fill and back) in relation to a selected object in the scene. This script should place the lights in chosen angles in relation to the camera (I have seen similar scripts but the part with the angles I have not seen a script do yet?)

Best regards,
Lars
 
Old 06-29-2005, 09:06 AM   #13
Xlars
Veteran
 
Xlars's Avatar
portfolio
Lars Bjorstrup
Freelance illustrator
Hellerup, Denmark
 
Join Date: Nov 2003
Posts: 74
Just a few more ideas ..

(i) SOFTER EDGES
A script to run through all objects in a scene and change all sharp corners to make them a little less sharp .. eg. by applying chamferEdges (a sharp coner being an edge between two adjecent polygons/faces of a certain angle). .. Something of a challange I think (both to locate sharp corners and to make some "clean" modeling changes) and not sure how to do the calculations for this my self, and if at all doable?

(j) COB WEB BUILDER
A script to model a cob web in a scene. Should take a selection of vertexes and use them as fix points for the web. Different elements to consider: use of renderable splines, gravity/wind, possibility for holes in the web, transfer to the web to a texture map + opacity map also? etc.

(k) PAVEMENT TILES
A script for laying out pavement tiles of different shapes and patterns, instanced objects of the tiles and placed a little irregular, also maybe adding random filling/sand in between.
 
Old 06-30-2005, 03:04 PM   #14
LouisCho
404 Error
 
LouisCho's Avatar
portfolio
Louis Choinière
Architectural illustrator
Studio Leonard
Canada
 
Join Date: Dec 2004
Posts: 574
Send a message via MSN to LouisCho
so many good ideas! I want it all!
__________________
---------------------------------
 
Old 06-30-2005, 06:38 PM   #15
krembo99
Know-it-All
 
Join Date: Jun 2003
Posts: 347
I have a suggestion for a script that would be very usefull ..

Actually, the discreet guys should add it to the control panel.

When i do architecture, and i use a camera clipping plane in order to avoid a wall or something, if the camera is not perpendicular to the wall, and the space is small, the plane always cuts the wall, or other objects in the space in a strange way ..
I´m sure all those who do architecture understand what i mean.
So i do not know if it can be done by scripting, but ROTATING THE CAMERA CLIP PLANE on every axis would be a great thing to have around ...
 
reply share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 09:55 PM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.