How to hide a node

Hi, I'm trying to hide a pair of boots through a script 

var bootNode = Scene.findNodeByLabel("LJBoots");

DzNode(bootNode).setHidden(true);

but this is not hiding the node in the scene.

I'm new to Daz3D Studio and Daz3D scripting, any help is appreciated. 

Comments

  • That doesn't work for whole figure if set via the Tool Settings pane, with the Joint Editor tool active. I don't know if that is the correct behaviour or not. It does work (via script and via the pane) for bones and for props.

  • This is how the shoes were added to the figure. I opened the SmartContent pane, and then picked Genesis 8. Then in the same SmartContent from under the Wardrobe tree I picked Footwear and added "Bardot Sandals", "Newport_Shoes", and "LJBoots". Now using a script how can hide this Footwear?  

    In the Scene pane, the Genesis 8 figure and all the Wardrobe items appear as Nodes. I'm having trouble selecting at least one Node by the Label name that appears in the Scene pane. I would appreciate some code that shows how to select a Node object that is appearing in the Scene pane and set it to hidden.

  • As I said, if you are wanting to hide items in the scene pane it appears to work for props (single node items without rigging) and bones but not for figures - if the shoes are figures (items with a bone hierarchy) then as far as I can see you can't currently do this, I don't know if that is the intent or not.

Sign In or Register to comment.