Profile
- Name
- Band Inverter 1.0
- ID
- 48257
- Shared with
- Public
- Parent
- None
- Children
- Created on
- February 17, 2014 at 20:23 PM UTC
- Updated on
- February 17, 2014 at 20:23 PM UTC
- Description
Disables enabled bands and enables disabled bands.
Best for
Code
--[[
* Band Inverter
* Original Author: LociOiling
* Version 1.0 February 17, 2014
* enable disabled bands, disable enabled bands
]]--
version = '1.0'
title = 'Band Inverter v'..version
print ( title )
nBnd = band.GetCount ( )
print ( "number of bands = " .. nBnd )
nBndD = 0
for jj = 1, band.GetCount ( ) do
if not band.IsEnabled ( jj ) then
nBndD = nBndD + 1
end
end
if nBndD > 0 then
print ( "enabled bands = " .. nBnd - nBndD )
print ( "disabled bands = " .. nBndD )
end
for jj = 1, band.GetCount ( ) do
if band.IsEnabled ( jj ) then
band.Disable ( jj )
else
band.Enable ( jj )
end
end