newbie need help
Hello
as said : I'm a newbie.
My script : I want to move vertex of editpoly numerically :
But I have error : "impossible to convert spinnercontrol:deltax to float"
can somebody help ?
macroScript MOVEpts
category:"yoko"
toolTip:""
(
rollout MMove "Move"
(
spinner deltax "x: " type:#float range:[-1000,1000,0]
spinner deltay "y: " type:#float range:[-1000,1000,0]
spinner deltaz "z: " type:#float range:[-1000,1000,0]
button create "GO"
on create pressed do
(
objx = selection[1]
move objx.selectedVerts[deltax,deltay,deltaz]
)
)
createDialog MMove
)
Comments
Hi Just looking through
Hi
Just looking through you're script quickly, and i've not tested this but;
the line:-
move objx.selectedVerts[deltax,deltay,deltaz]
should read:-
move objx.selectedVerts[(deltax.value),(deltay.value),(deltaz.value)]
This should sort things out.
The float is the value of the spinner called deltax, not the variable deltax.
Hope that's sorted the problem.
Martin
www.martinskinner.co.uk
Thank you very much Martin
Thank you very much Martin for your quick answer !
Works fine now !
I do architectural visualisation too, and I'll try to add a lot of very little scripts to help modelling in Max.
Like aligning vertex,etc...