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 7142 May 03, 2016 09:34PM
Lua basic tutorials pyroaxel 3899 March 03, 2016 10:53PM
In the beginning.... pyroaxel 2842 March 03, 2016 11:04PM
Your first input pyroaxel 2686 March 03, 2016 11:10PM
MA commands pyroaxel 2607 March 03, 2016 11:41PM
We include labeling pyroaxel 1858 March 04, 2016 11:30AM
Re: MA commands Eric Kincl 1674 March 09, 2016 06:41PM
Re: MA commands pyroaxel 1474 March 09, 2016 08:33PM
Add a character match pyroaxel 1476 March 04, 2016 02:24PM
Import text from your desktop. pyroaxel 1302 March 05, 2016 07:42PM
Importing Wysiwyg positions pyroaxel 1471 March 06, 2016 02:35PM
Writing text to a txt file on a PC desktop pyroaxel 1138 March 08, 2016 03:33PM
Sending MA object info to a txt file on a PC desktop pyroaxel 1134 March 08, 2016 04:50PM
Making a clock as a Macro label pyroaxel 1497 March 13, 2016 12:20PM
Presets to cues pyroaxel 1515 March 18, 2016 11:06PM
Re: Presets to cues bentoylight 1086 May 11, 2016 02:14PM
Re: Presets to cues bentoylight 876 May 11, 2016 03:05PM
Storing SpeedMaster levels in variables Attachments pyroaxel 1571 March 27, 2016 03:52PM
Re: Recalling SpeedMaster levels from variables glad 910 March 27, 2016 04:19PM
Re: Recalling SpeedMaster levels from variables pyroaxel 735 March 27, 2016 05:17PM
Re: Recalling SpeedMaster levels from variables Hblightguy 758 March 27, 2016 08:29PM
Re: Recalling SpeedMaster levels from variables Hblightguy 667 March 27, 2016 10:19PM
Re: Recalling SpeedMaster levels from variables pyroaxel 633 March 27, 2016 11:17PM
Re: Recalling SpeedMaster levels from variables bentoylight 752 March 28, 2016 04:40PM
Re: Storing SpeedMaster levels in variables Hblightguy 732 April 06, 2016 01:07AM
System Var to capture current page and exe state pyroaxel 1083 March 29, 2016 08:04PM
Recalling current page and exe state pyroaxel 771 March 29, 2016 08:05PM
Temp button start/stop timer pyroaxel 815 May 25, 2016 02:13PM
Autolabeling of presets with colors called by Gel pyroaxel 890 June 20, 2016 07:12PM
Re: Lua basic tutorials MTX-Lightning 1032 July 01, 2016 03:13PM
Re: Lua basic tutorials pyroaxel 843 July 02, 2016 05:06PM
Re: Lua basic tutorials MTX-Lightning 776 July 02, 2016 08:15PM
Re: Lua basic tutorials glad 901 July 04, 2016 02:07AM
Re: Lua basic tutorials MTX-Lightning 787 July 04, 2016 10:59AM
Re: Lua basic tutorials bentoylight 759 July 05, 2016 01:26AM
Re: Lua basic tutorials Pahegi 802 August 20, 2016 11:42PM
Re: Lua basic tutorials davidlight 475 May 02, 2019 05:51PM



Sorry, only registered users may post in this forum.

Click here to login