
90
Object Model
In addition to IScriptObject, Maxwell.Script.dll defines several other interfaces. IScriptObject has as its properties one of each
of these child objects:
The supplementary interfaces are implemented as child-properties of IScriptObject. Scene parameters are always accessed
through IScriptObject's child sub-objects:
ICameraObject : properties corresponding to those in Manager > Camera
IChannelsObject : properties corresponding to those in Scene Manager > Channels
IDateAndTimeObject : properties corresponding to those in Scene Manager > Date & Time
IEnvironmentObject : properties corresponding to those in Scene Manager > Environment
IImageBasedChannelObject : properties corresponding to those in Scene Manager > Environment > Image Based Channels
ILocationObject : properties corresponding to those in Scene Manager > Location
IOutputObject : properties corresponding to those in Scene Manager > Output
IPlugInOptionsObject : properties corresponding to those in Scene Manager > Options
IRenderingObject : methods to invoke the plugin's Rendering functions
ISettingsObject : properties corresponding to those in Scene Manager > Settings
All parameters are represented as simple get/set properties, with no parameterized methods. The only data-types required
are string, integer, double, and boolean, with no need to pass arrays. Parameters which are represented as enums in the
underlying type accept string input, e.g. setting the scene's Environment type to Physical Sky takes the string: "PhysicalSky".
In general, property names follow their corresponding names as shown in the Scene Manager, with some small differences
from time to time. On the overall though, if one is able to use the Scene Manager user-interface, it should be quite easy to
script the plugin.
Comentários a estes Manuais