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 6091 May 03, 2016 09:34PM
Lua basic tutorials pyroaxel 3589 March 03, 2016 10:53PM
In the beginning.... pyroaxel 2503 March 03, 2016 11:04PM
Your first input pyroaxel 2353 March 03, 2016 11:10PM
MA commands pyroaxel 2264 March 03, 2016 11:41PM
We include labeling pyroaxel 1654 March 04, 2016 11:30AM
Re: MA commands Eric Kincl 1466 March 09, 2016 06:41PM
Re: MA commands pyroaxel 1283 March 09, 2016 08:33PM
Add a character match pyroaxel 1271 March 04, 2016 02:24PM
Import text from your desktop. pyroaxel 1123 March 05, 2016 07:42PM
Importing Wysiwyg positions pyroaxel 1277 March 06, 2016 02:35PM
Writing text to a txt file on a PC desktop pyroaxel 936 March 08, 2016 03:33PM
Sending MA object info to a txt file on a PC desktop pyroaxel 971 March 08, 2016 04:50PM
Making a clock as a Macro label pyroaxel 1331 March 13, 2016 12:20PM
Presets to cues pyroaxel 1311 March 18, 2016 11:06PM
Re: Presets to cues bentoylight 930 May 11, 2016 02:14PM
Re: Presets to cues bentoylight 718 May 11, 2016 03:05PM
Storing SpeedMaster levels in variables Attachments pyroaxel 1373 March 27, 2016 03:52PM
Re: Recalling SpeedMaster levels from variables glad 759 March 27, 2016 04:19PM
Re: Recalling SpeedMaster levels from variables pyroaxel 603 March 27, 2016 05:17PM
Re: Recalling SpeedMaster levels from variables Hblightguy 609 March 27, 2016 08:29PM
Re: Recalling SpeedMaster levels from variables Hblightguy 532 March 27, 2016 10:19PM
Re: Recalling SpeedMaster levels from variables pyroaxel 485 March 27, 2016 11:17PM
Re: Recalling SpeedMaster levels from variables bentoylight 623 March 28, 2016 04:40PM
Re: Storing SpeedMaster levels in variables Hblightguy 590 April 06, 2016 01:07AM
System Var to capture current page and exe state pyroaxel 885 March 29, 2016 08:04PM
Recalling current page and exe state pyroaxel 631 March 29, 2016 08:05PM
Temp button start/stop timer pyroaxel 671 May 25, 2016 02:13PM
Autolabeling of presets with colors called by Gel pyroaxel 734 June 20, 2016 07:12PM
Re: Lua basic tutorials MTX-Lightning 851 July 01, 2016 03:13PM
Re: Lua basic tutorials pyroaxel 690 July 02, 2016 05:06PM
Re: Lua basic tutorials MTX-Lightning 626 July 02, 2016 08:15PM
Re: Lua basic tutorials glad 735 July 04, 2016 02:07AM
Re: Lua basic tutorials MTX-Lightning 619 July 04, 2016 10:59AM
Re: Lua basic tutorials bentoylight 599 July 05, 2016 01:26AM
Re: Lua basic tutorials Pahegi 634 August 20, 2016 11:42PM
Re: Lua basic tutorials davidlight 304 May 02, 2019 05:51PM



Sorry, only registered users may post in this forum.

Click here to login