2 newbie questions
Hi
I'm pretty new to scripting and started to make a script which creates stands of a stadium.
Two questions have come up:
1) Is it possible to give an object a name directly after creating it? At the moment I do it like this for example:
Rectangle length: L2 width: W2 corner_radius: ra2 steps: s
$Rechteck01.name = "T2 Stand" (Rechteck is german for Rectangle)
The problem is when someone with the english version of 3ds max is using the script it doesnt work because there is no object with the name "Rechteck01", but one named "Rectangle01".
There must be a way to give the name directly after creating it?
2) Is about a GUI I made. Here is a screenshot: http://img706.imageshack.us/img706/2692/aaaail.jpg
I wonder if its possible that the groups "Tier 2" and "Tier 3" are only visible if the number of tiers is set to 2 or 3 respectively. I tried an if condition within the rollout, but didn't work.
Thanks in advance
weee
Comments
Hi weee About question 1. The
Hi weee
About question 1. The easiest thing would be to set the name directly as a property when creating the rectangle. In other words:
Rectangle length: L2 width: W2 corner_radius: ra2 steps: s name:"T2 Stand"
Alternatively, you can assign the rectangle to a variable, and the access the name property of that variable like so:
And about the second one, the easiest way would probably be to change the "enabled" property on the controls you wish to disable. All you have to do is have the changed event on the "Number of tiers" spinner check the actual value, and then enable/disable controls accordingly.
I hope that helps.
Hi Marco Thanks alot for your
Hi Marco
Thanks alot for your answer.
Both problems solved!
Weee