hiphopclown
02-23-2005, 12:08 AM
Hi,
Im new to the maxscripting world so you might have to bear with me.
Anyway Im trying to write a small script that will extrude imported shapes from autocad at a random height.
So far I have this:
----
global rExtrudeLowerLimit=1.0
global rExtrudeUpperLimit=10.0
modPanel.addModToSelection (Extrude ()) ui:on
$.modifiers[#Extrude].amount = (random rExtrudeLowerLimit rExtrudeUpperLimit)
----
Now the problem is, this works fine if i have selected 1 shape. If i want to extrude multiple shapes all at random heights, it doesnt work. Now i can sort of understand in my head why, however I wouldnt have a clue how to rectify this.
The next step Im hoping to work out is to then 'drape' those extruded shapes onto a surface but first things first, the extrude is my main priority at this stage.
I figure this is a relatively simple operation but as i said, Im new.
Any help would be greatly appreciated!
Ah lastly, before you say to search the help files, Im using VIZ and there doesnt seem to be any maxscript help in the helpfiles.
Cheers for any help you can provide!
Im new to the maxscripting world so you might have to bear with me.
Anyway Im trying to write a small script that will extrude imported shapes from autocad at a random height.
So far I have this:
----
global rExtrudeLowerLimit=1.0
global rExtrudeUpperLimit=10.0
modPanel.addModToSelection (Extrude ()) ui:on
$.modifiers[#Extrude].amount = (random rExtrudeLowerLimit rExtrudeUpperLimit)
----
Now the problem is, this works fine if i have selected 1 shape. If i want to extrude multiple shapes all at random heights, it doesnt work. Now i can sort of understand in my head why, however I wouldnt have a clue how to rectify this.
The next step Im hoping to work out is to then 'drape' those extruded shapes onto a surface but first things first, the extrude is my main priority at this stage.
I figure this is a relatively simple operation but as i said, Im new.
Any help would be greatly appreciated!
Ah lastly, before you say to search the help files, Im using VIZ and there doesnt seem to be any maxscript help in the helpfiles.
Cheers for any help you can provide!
