This tool allow you code your own script inside Smode.
define the way to execute your code. It's by default set to "Manual", which means that you need to trig the
Here are the other way to execute the code
: Executed everytime the
trigger is pressed
: Executed when this one is preloaded
: Executed when the script is activated
At Parameter Change
: Executed everytime a script's parameter change
At Every Update
: Executed every frame
: Executed whent the script is deactivated
: Executed whent the script is Unloaded
The output Console of Smode is also refreshed by the execution of the code.
Navigate through elementTree
In order to create layers, you need to know it's name.
check the layers Class names
list for informations.
Example with a compo layer
Instantiate your layer
Define the type
Place it in the Element tree
MyLayer = Oil.createObject("Compo")
LayerType = SmodeSDK.TextureLayer(generator=MyLayer)
Set a parameter for a layer
Get a parameter from a layer
Navigate through media directories