hide / unhide syntax in .duf?
![Mistara](https://farnsworth-prod.uc.r.appspot.com/forums/uploads/userpics/696/nZWPLNMIHHIVI.png)
when i'm making a hide / unhide for walls and windows in poser, i manually type a pz2. hide 0 or hide 1
no idea how to do it in a .duf file?
figuring the stuff in curly braces are all the variables?
is there a template maybe?
syntax templates?
Thanks. :)
Post edited by Mistara on
Comments
maybe i'm better off using the old fashioned method? make the stuff in poser format and just add the ds shader to the poser folder. :down:
Are you trying to create presets to hide/unhide a wall's visibility in the scene? Or hide/unhide elements from the Scene/Parameters (e.g., made visible by Show Hidden Nodes/Show Hidden Parameters)?
visibility in the scene.
Not sure if you can do this in a .duf as a toggle visibility preset. Visibility is a scene list thing, and a scene subset would end up adding to the scene instead of overwriting.
Maybe you'd be better off creating DAZ Scripts for these visibility toggles? You can still have them in your materials folder, but they'd be .dsa files instead of .duf. You could either retrieve the currently selected nodes in the scene and toggle their visibility (see sample code) or look for specifically named objects to toggle (though that could get dicey if the user has renamed the wall/etc or instantiated multiples of them which by definition requires alternate names).
Sample toggles visibility of all selected nodes (and their children). Useful when you want to hide the hand and all finger bones, for example to help eliminate pokethrough on a figure wearing a tight-fitting glove.