Welcome to CGarchitect.com Untitled Document

Go Back   CGarchitect.com > 3D SOFTWARE > Scripts

Notices

Scripts Post and discuss architectural scripts or maxscripts here. This forum is for all software applications.

Reply
 
LinkBack Thread Tools Display Modes
Old November 28th, 2006   #1 (permalink)
Senior Member
 
Join Date: Nov 2006
Location: Currently in Shanghai
Posts: 197

Name: Elliott Hambrook


China  Send a message via MSN to batteryoperatedlettuce


Default Question: very basic scripting question

I am developing a very simple script for forming cities from imported plines. This is just part of a study to break into maxScript, which I find very entertaining.

It performs the following functions:

-Splits editible splines containing more than one spline into seperate objects

-then within a loop
--Extrudes the splines within given random parameters
--Assigns appropriate matIDs to the wall, roof and parapet
--Performs a bevel operation on the top polygon to create a parapet wall
--adds between 0-3 textured blocks at the roof level simulating roof detail
--closes the object and then moves onto the next one

It works from a macro button. You simply select a bunch of stuff and hit the button and it grows a fairly presentable city with textures.

What I want it to do is either -

Work as a modifier so I can adjust my variable parameters in real time or...
Pop up an a box asking the user to input the min/max heights of the buildings

can somebody show me a barebones way of creating a plugin style modifier with just one variable. Even if it doesn't really do anything useful, I would like to see how it is set up.
batteryoperatedlettuce is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links

Old February 21st, 2007   #2 (permalink)
Super Moderator
 
nisus's Avatar
 
Join Date: Mar 2002
Location: Gent Flanders Belgium Europe
Age: 33
Posts: 3,277

Name: Evert Vandenberghe


Belgium 


Default Re: Question: very basic scripting question

Hi Kev,

I've found that a pop-up box is not a good way to drive your script.

I myself write all my scripts in the tools section, because it is intergrated in the max interface that way, not cluttering the working screen. Also I've found it easier to implement.

If you want the script always active, place it in the scripts/startup directory

utility Automatic City "Automatic City"
(
--Here comes your script
)


rgds,

nisus
nisus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Ram question CookiE 3ds Max 4 November 10th, 2006 05:06 AM
Computer question Maxer Hardware and Technical Discusions 0 March 31st, 2006 02:01 PM
basic contract r_mc_gowan General Discussions 4 November 21st, 2005 12:49 PM
simcloth question + 3ds max6 haneet khanna 3ds Max 4 November 9th, 2005 11:32 AM
Assigning Materials in Viz Question nladd Autodesk VIZ 3 March 27th, 2005 09:10 PM


All times are GMT -7. The time now is 08:18 PM.





Powered by vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
© Copyright 2001 – 2008 CGarchitect Digital Media Corp. All Rights Reserved.