I am a beginer in MaxScripting and i run into a strange problem.
I followd this video tutorial: [HTML]
But every time I tried to create the Sphere with the values from the spinner I get this error message:
>> MAXScript Rollout Handler Exception: -- Unable to convert: SpinnerControl:_CS to type: Integer <<
even if I change the type of the Spinner to integer.
I really don't know what to do
Here is the full code
rollout MySphere "My Sphere Script"
(
spinner _SS "Size" type:#integer range: [1,200,10]
button _Sph "Sphere"
on _Sph pressed do
(
sphere segments:_SS radius:10
)
)
createdialog MySphere 200 150
Replies
spinner _SS "Size" type:#integer range: [1,200,10]
Change to
spinner _SS "Size" type:#integer range:[1,200,10]
Should be:
sphere segments:_SS.value radius:10
_SS is the actual spinner, and _SS.value is the number in the spinner. Just like $Sphere001 would be a sphere object, and $Sphere001.name would be it's name.
In the video tutorial he puts .value in at 8:53.