Just what it says on the tin - the parts of a DMX trigger declaration.
Anything between a <!-- and --> is considered commented out. I would strongly recommend commenting your code... :)
event - This tag is what is used to define separate trigger event actions.
type - This is where you tell the program which trigger to watch for.
continuous - Do you want this even to loop as long as the event is happening, possibly cutting off in the middle? or do you want it to fire off once, completely, and not again until triggered again?
timeblock - This tag breaks up the event into sections, played sequentially
mseconds - How long is this timeblock, in milliseconds
setvalue - Here's where the magic happens. This tag is a command for a single DMX address
index - The channel you're addressing with this setvalue command. Valid integers between 0-511, Artemis will increment the address by 1 to read 1-512.
value - Any integer from 0-255.
change - During this timeblock, if not 0, Artemis will increment or decrement the value by this amount over 1000 ms, within the range of 0-255. For example change="-100", then it will decrement the value by 1 every 10 ms.
The event below creates a yellow light during tractoring events, and fades it out for a half second and in for a half second. It's continuous, so this plays for as long as the ship is being tractored. If tractoring takes less than 1 second, then the entire code may not be executed.
<!-- ********************************************************************************************* -->
<event type="TRACTORED_FOR_DOCKED" continuous="yes">
<!-- steady yellow light -->
<timeblock mseconds="500">
<setvalue index="5" value="200" change="-100"/> <!-- red value of first light box -->
<setvalue index="6" value="200" change="-100"/> <!-- green value of first light box -->
<setvalue index="7" value="13" change="0"/> <!-- blue value of first light box -->
</timeblock>
<timeblock mseconds="500">
<setvalue index="5" value="150" change="100"/> <!-- red value of first light box -->
<setvalue index="6" value="150" change="100"/> <!-- green value of first light box -->
<setvalue index="7" value="13" change="0"/> <!-- blue value of first light box -->
</timeblock>
</event>
Comments (0)
You don't have permission to comment on this page.