ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
local mymatrix = matrix3 1
spinner spn_spinnerx "X Amount"
spinner spn_spinnery "Y Amount"
spinner spn_spinnerz "Z Amount"
button translate_matrix "Translate Matrix"
on translate_matrix pressed do
(
mytransM = transMatrix [spn_spinnerx.value, spn_spinnery.value, spn_spinnerz.value] -----Here i need help i think
mymatrix = mymatrix*mytransM
format "mymatrix = %\n" mymatrix
)
button scale_matrix "Scale Matrix"
on scale_matrix pressed do
(
myscaleM = scaleMatrix [spn_spinnerx.value, spn_spinnery.value, spn_spinnerz.value] -----Here i need help i think
mymatrix = mymatrix*myscaleM
format "mymatrix = %\n" mymatrix
)
button rotate_matrix "Rotate Matrix"
on rotate_matrix pressed do
(
myrotateM = preRotate [spn_spinnerx.value, spn_spinnery.value, spn_spinnerz.value] -----Here i need help i think
mymatrix = mymatrix*myrotateM
format "mymatrix = %\n" mymatrix
)
It is within a rollout but still chucks back an error when i try to do the rotate matrix???
Comments
Read this topic
Read this topic http://docs.autodesk.com/3DSMAX/15/ENU/MAXScript-Help/index.html?url=fil...
U can use PreRotate matrix3 quat
bga
I suck at matrixes
I added the prerotate to this piece of code:
local mymatrix = matrix3 1
spinner spn_spinnerx "X Amount"
spinner spn_spinnery "Y Amount"
spinner spn_spinnerz "Z Amount"
button translate_matrix "Translate Matrix"
on translate_matrix pressed do
(
mytransM = transMatrix [spn_spinnerx.value, spn_spinnery.value, spn_spinnerz.value] -----Here i need help i think
mymatrix = mymatrix*mytransM
format "mymatrix = %\n" mymatrix
)
button scale_matrix "Scale Matrix"
on scale_matrix pressed do
(
myscaleM = scaleMatrix [spn_spinnerx.value, spn_spinnery.value, spn_spinnerz.value] -----Here i need help i think
mymatrix = mymatrix*myscaleM
format "mymatrix = %\n" mymatrix
)
button rotate_matrix "Rotate Matrix"
on rotate_matrix pressed do
(
myrotateM = preRotate [spn_spinnerx.value, spn_spinnery.value, spn_spinnerz.value] -----Here i need help i think
mymatrix = mymatrix*myrotateM
format "mymatrix = %\n" mymatrix
)
It is within a rollout but still chucks back an error when i try to do the rotate matrix???
Thanks for all your help!!