Hi, I'm trying to write a script that will:
1. Find all 'Hip' nodes in scene;
2. Collapse/Close them in Hierarchy tab
3. Collapse/Close them in Timeline tab
I managed to find first node in scene and collapse in Hierarchy Pane, with script:
Scene.selectAllNodes(false);
var oMyNode = Scene.findNodeByLabel('Hip');
var oMainWindow = App.getInterface();
var oPaneMgr = oMainWindow.getPaneMgr();
var oHierarchyPane = oPaneMgr.findPane(DzHierarchyPane.className());
oMyNode.select(true)
oHierarchyPane.refresh()
oHierarchyPane.closeSelected();
I can't do a thing in Timeline Pane in similiar way. Also: no idea how to do it for multiple nodes(all with label 'hip' in the scene).
Thank you, for any help.
P.S. damn Timeline shortcuts 'collapse item' and 'collapse from item' don't work. It works when you select it from menu(right click), but not with shortcut assigned to action. Or is it just for me?