Welcome! Log In Create A New Profile

Advanced
Lua basic tutorials
May 03, 2016 09:34PM
--[[Grab a fader level from a Playback Master. Playback master 1 is specialmaster 5.1
Warning: this is an infinite loop --]]
return function()
repeat
feed=gma.feedback
cmd=gma.cmd
my_master=('sm 5.1')
o=gma.show.getobj
handle=o.handle(my_master)
property=gma.show.property.get
fader_value=property(handle, 'value')
feed(fader_value)
--First format, remove the % sign
fader_value_format=string.gsub(fader_value,'%%',' ')
--Second format: tonumber
fader_value_format_numb=tonumber(fader_value_format)
feed(fader_value_format_numb)
if fader_value_format_numb<=25 then cmd('exe 1 at 25') end
gma.sleep(0.6)
--This will be an infinite loop. Set until within the 0-100 range for automatic stop.
until fader_value_format_numb==300
end

Axel Sundbotten
LD/Programmer
www.ald.org.uk/AxelSundbotten



Edited 1 time(s). Last edit at 05/03/2016 09:37PM by pyroaxel.
Subject Author Views Posted
Lua basic tutorials pyroaxel 6640 May 03, 2016 09:34PM
Lua basic tutorials pyroaxel 3758 March 03, 2016 10:53PM
In the beginning.... pyroaxel 2702 March 03, 2016 11:04PM
Your first input pyroaxel 2518 March 03, 2016 11:10PM
MA commands pyroaxel 2432 March 03, 2016 11:41PM
We include labeling pyroaxel 1769 March 04, 2016 11:30AM
Re: MA commands Eric Kincl 1590 March 09, 2016 06:41PM
Re: MA commands pyroaxel 1388 March 09, 2016 08:33PM
Add a character match pyroaxel 1384 March 04, 2016 02:24PM
Import text from your desktop. pyroaxel 1219 March 05, 2016 07:42PM
Importing Wysiwyg positions pyroaxel 1391 March 06, 2016 02:35PM
Writing text to a txt file on a PC desktop pyroaxel 1047 March 08, 2016 03:33PM
Sending MA object info to a txt file on a PC desktop pyroaxel 1051 March 08, 2016 04:50PM
Making a clock as a Macro label pyroaxel 1419 March 13, 2016 12:20PM
Presets to cues pyroaxel 1415 March 18, 2016 11:06PM
Re: Presets to cues bentoylight 1027 May 11, 2016 02:14PM
Re: Presets to cues bentoylight 815 May 11, 2016 03:05PM
Storing SpeedMaster levels in variables Attachments pyroaxel 1482 March 27, 2016 03:52PM
Re: Recalling SpeedMaster levels from variables glad 848 March 27, 2016 04:19PM
Re: Recalling SpeedMaster levels from variables pyroaxel 681 March 27, 2016 05:17PM
Re: Recalling SpeedMaster levels from variables Hblightguy 707 March 27, 2016 08:29PM
Re: Recalling SpeedMaster levels from variables Hblightguy 614 March 27, 2016 10:19PM
Re: Recalling SpeedMaster levels from variables pyroaxel 573 March 27, 2016 11:17PM
Re: Recalling SpeedMaster levels from variables bentoylight 697 March 28, 2016 04:40PM
Re: Storing SpeedMaster levels in variables Hblightguy 677 April 06, 2016 01:07AM
System Var to capture current page and exe state pyroaxel 983 March 29, 2016 08:04PM
Recalling current page and exe state pyroaxel 697 March 29, 2016 08:05PM
Temp button start/stop timer pyroaxel 744 May 25, 2016 02:13PM
Autolabeling of presets with colors called by Gel pyroaxel 822 June 20, 2016 07:12PM
Re: Lua basic tutorials MTX-Lightning 958 July 01, 2016 03:13PM
Re: Lua basic tutorials pyroaxel 778 July 02, 2016 05:06PM
Re: Lua basic tutorials MTX-Lightning 702 July 02, 2016 08:15PM
Re: Lua basic tutorials glad 826 July 04, 2016 02:07AM
Re: Lua basic tutorials MTX-Lightning 711 July 04, 2016 10:59AM
Re: Lua basic tutorials bentoylight 691 July 05, 2016 01:26AM
Re: Lua basic tutorials Pahegi 735 August 20, 2016 11:42PM
Re: Lua basic tutorials davidlight 399 May 02, 2019 05:51PM



Sorry, only registered users may post in this forum.

Click here to login