Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

Select nodes -> collapse in Hierarchy+Timeline tabs

$
0
0

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?


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>