changing values of the object
Guys, I'm from Brazil I'm trying to learn MAXScript and would very much help from you!
I'm trying to create a script that can change height and width of a box using a textbox and a button. When you already have in your desktop for a Box selected it can put a value in the textbox and then click the button for the script to change the height of the object. How am beginner've tried a few things nothing worked. If you comment on how the script so that I can understand, I will be very grateful.
Thank you.
Comments
Good evening friends! I am
Good evening friends!
I am wanting to put the visual image within MAXScript editor and put color on the buttons that resource type can do with MAXScript?
Good night guys, As said in
Good night guys,
As said in the previous post I'm new to Max script following the suggestion of our friend barigazy sppiner I'm trying to use the same idea using the script from the previous post and use sppiner trying to change the height of obejeto. I do not know if my idea this right and that the class I'm using is correct for my kind of script. Below attempt to script.
rollout teste "Enter New Base Name" width:176 height:243
(
spinner test "testwidth: " pos:[24,126] width:136 height:16 range:[1,10,5] type:#integer
button create "width" pos:[16,208] width:144 height:24
on create pressed do
(
if selection.count == 0 then messageBox "Select some objects first!" title:"Warning" beep:off
else
(
for i in selection do i.width = classOf et_base_name.width
)
)
)
createDialog teste
sorry for the mistakes that English is not mastered how to use English translator!
...
U can put your code between tags to look like this
Read this http://www.scriptspot.com/filter/tips
bga
I'm trying to learn to change
I'm trying to learn to change with this script I got the site MAXScript. I am very beginner in this area. If evaluate my knowledge of 0 to 10 my knowledge is 1.
Sorry to ask these questions of beginners.
Below script.
rollout rename_rollout "Enter New Base Name"
(
edittext base_name ""
button rename_them "RENAME SELECTED OBJECTS..."
on rename_them pressed do
(
if base_name.width != "" do
for i in selection do i.width = uniquename base_name.text
)
)
createDialog rename_rollout 250 50
...
Here we go
This video training is very good for starters
http://www.scriptspot.com/3ds-max/tutorials/maxscript-101-free-online-tr...
Next your code
bga
...
Now try to write tool to changing basic properties of "Primitives" objects like
width, height, length , radius etc. using "spinner" controls.
A tip: check selection count and if selected object have properties that you nee to change.
Read this topic "Class and Object Inspector Functions".
If you have a problem just post your code again here.
bga
...
Post what you have for now.
If you want the answer tou need to post some code first
bga