Files
Carlo Baronchelli 741791a0e4 Copia locale Iniziale
2022-05-19 16:04:07 +02:00

32 lines
865 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