View Full Version : scripting error

04-12-2005, 01:20 AM
I recieve an error everytime I try to run any script in Max.

-- Type error: Call needs function or class, got: undefined

I don't know where the error is but here is the simple script:

-- SolarSystem.ms

rollout ssRoll "Solar System"
spinner spn_sunRadius "Sun Radius"
button but_creatSun "Create Sun"
spinner spn_numPlants "Number of Planets"
group "Plants"

pickbutton pbt_pickPlant "Pick Plant"
spinner spn_planetRadius "Plant Radius"
spinner spn_orbitRadius "Orbit Radius"

createDialog ssRoll 200 200

Any help with this would be appreciated

24-12-2005, 07:52 PM
i don't know anything about max scripting, but i do know java and c and i think this:
createDialog ssRoll 200 200 might be your problem. the error says that you are calling a function that isn't there or that isn't initiated, imported or whatever. i hope this helps.