Scripted Atmospheric plug-ins can only extend existing Atmospheric plug-ins. A scripted Atmospheric plug-in is declared by specifying the <superclass> as atmospheric.
plugin atmospheric myFogEnv
name:"Super Fog Env"
extends:Fog version:1 replaceUI:true
parameters main rollout:params
fogcol type:#color animatable:true ui:col
on fogcol set val do delegate.fog_color = val
rollout params "Super Fog Parameters"
colorpicker col "Fog Color"
on create do delegate.fog_type = 1
The render() function can be called re-entrantly within a scripted atmospheric plug-in. (In releases prior 3ds Max 4, attempting to do this caused a runtime error saying that the renderer could not be called while a render was already under way.)
Updating Scripted Plug-ins
Scripted Plug-in Methods
Scripted Plug-in Clauses
Scripted Mouse Tools