Hi,
Is there a way to have a list of where a fixture is used in a show? (Presets, cues, etc.) ListRef only lists Layouts
Thanks
Hi,
Is there a way to have a list of where a fixture is used in a show? (Presets, cues, etc.) ListRef only lists Layouts
Thanks
ListRef only shows information about object dependencies, not attribute data. For attribute data we need a Search functionality. What are you looking to achieve in this case?
I would like to know in witch sequences a and presets a fixture is used. As a list.
The following function is probably slow not very elegant, but it returns the cue parts where the fixture is used. As parameter in needs the fixture id in string format. It loops thru all fixtures of all parts of all cues of all the sequences and holds a record of where the fixture you look for es encountered. Finally it prints the results to the command line history. Maybe this can be the base of a more elaborated plugin, but hopefully someone comes up with a better solution.
FixRef=function (s_fixid)
local t_ref={}
local t_sequences=DataPool().sequences:Children()
for _,u_seq in ipairs(t_sequences) do
local i_seq=u_seq.no
local t_cues=u_seq:Children()
for _,u_cue in ipairs(t_cues) do
if u_cue.no then
local i_cue=u_cue.no
local t_parts=u_cue:Children()
for _,u_part in ipairs(t_parts) do
local s_part=u_part.name
local t_phasers=GetPresetData(u_part)
for k,v in pairs(t_phasers) do
if k~='count' then
local uichn=GetUIChannel(tonumber(k))
if tostring(uichn.sf_index)==s_fixid then
local s_key=string.format('sequence %d cue %d %s',i_seq,i_cue,s_part)
t_ref[i_seq]=t_ref[i_seq] or {}
t_ref[i_seq][i_cue]=t_ref[i_seq][i_cue] or {}
t_ref[i_seq][i_cue][s_part]=true
end
end
end
end
end
end
end
for i_seq,t_seq in pairs(t_ref) do
Printf('found in sequence %d',i_seq)
for i_cue, t_cue in pairs(t_seq) do
Printf(' cue %s',tostring(i_cue/1000))
for s_part,_ in pairs(t_cue) do
Printf(' %s',s_part)
end
end
end
end
Display More
Don’t have an account yet? Register yourself now and be a part of our community!