10-07-2021, 02:51 PM
Well, the bigger issue is that if there are more than one tyFlow objects in the scene, how to decide which one to open? The user who implements a macroscript for this would need to decide on their own heuristic.
You can iterate through all tyFlows in the scene - regardless of name - by calling:
You can iterate through all tyFlows in the scene - regardless of name - by calling:
Code:
arr = getClassInstances tyFlow
for t in arr do
(
--do something
)
--or
if (arr.count > 0) then arr[1].editor_open()