FixtureType()
Description
Section titled âDescriptionâThe FixtureType Lua function returns a handle to the fixture type. The function does not accept any arguments, but the function must be executed when the command line destination is at a fixture type. If the command line destination is not a valid fixture type, then the function returns ânilâ.
Arguments
Section titled âArgumentsâThis function does not accept any arguments.
- Handle or nil:
The handle for the fixture type or nil.
Example
Section titled âExampleâThis example prints the information about the second fixture type in the show:
| Copy CodeLua |
| ``` |
| return function () |
-- The function returns the handle to the fixture at the current command line destination.-- Change to the "FixtureType" destination.Cmd("ChangeDestination FixtureType")-- Change to the second fixture type in the show.Cmd("ChangeDestination 2")-- Dump information about the Fixture Type handle.Printf("=============== START OF DUMP ===============")FixtureType():Dump()Printf("================ END OF DUMP ================")-- Return the command line destination to the Root.Cmd("ChangeDestination Root")end