Files
DataBeam/EnableFeatures.lua
T
Dario Sassi 6eaba8a577 DataBeam :
- primo rilascio.
2019-04-01 15:18:51 +00:00

32 lines
896 B
Lua

-- DisableFeatures.lua by Egaltech s.r.l. 2018/04/25
-- Gestione abilitazione delle feature selezionate
-- Intestazioni
require( 'EgtBase')
_ENV = EgtProtectGlobal()
EgtEnableDebug( false)
if EgtGetSelectedObjCount() == 0 then
EgtOutBox( 'Nessuna lavorazione selezionata', 'Abilita lavorazioni', 'ERROR')
end
local nId = EgtGetFirstSelectedObj()
while nId do
-- verifico sia una feature
local nParentId = EgtGetParent( nId)
if EgtIsLayer( nParentId) and EgtGetName( nParentId) == 'Processings' and
EgtGetInfo( nId, 'GRP', 'i') and EgtGetInfo( nId, 'PRC', 'i') then
EgtRemoveInfo( nId, 'DO')
EgtResetColor( nId)
local nAuxId = EgtGetInfo( nId, 'AUXID', 'i')
if nAuxId then
EgtResetColor( nId + nAuxId)
end
end
nId = EgtGetNextSelectedObj()
end
EgtDeselectAll()
EgtZoom( SCE_ZM.ALL)
-- end