View Full Version : Curtain Wall script

02 February 2006, 10:01 PM
hi all,

i just started to learn maxscript and i created this script for generating glass curtain walls from a selected polygon object.

i would like to ask anyone experienced enough to check my script for mistakes
or anything that could or should be done better
this version of the script doesnt seem to accept user input from the spinners and i dont know why :(
could anyone check it and help me with this ?

the previous, simplier version of the script works fine.
after i run this script, the other enhanced version starts working properly.

thanks for your time.
cheers Jan.

02 February 2006, 11:43 PM
Didn't get the chance to look at your script (waiting for a render...) but from your description it seems like you have some variables that you declared as global in the first script but not in the second and once you initialize them in the first they are seen by the second.
Hope this helps!

02 February 2006, 01:03 PM
do i need to declare variables as global ? for them to work. btw i have them declared in both versions of the script.

02 February 2006, 10:58 PM
In your enhanced script you are setting the variables to "value" instead of "yourspinner.value". You could use "yourspinner.value" in the rest of the script to avoid using extra variables because you don't need to set anything after you've changed the spinners. Their new value will be the one read.

Also try to use "selection[1]" instead of "$" for the selected object.

CGTalk Moderation
02 February 2006, 10:58 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.