There's got to be a better way to hide/export individual objects.

FalcoFalco Posts: 241

I do a lot of work where I have large scenes with hundreds of objects and I often need to export individual objects to obj to finish them in other software.  Currently, my workflow comes to a screeching halt because I have to hide everything in the scene in order to export the individual objects.  I have tried to minimize the pain of this by smartly grouping as much as I can, saving the scene before I hide everything, exporting the object, then reloading the scene so that the right objects are visible again, but it still really sucks as a workflow.  

Is there any possible solution out there to export individual objects without having to do all this hiding crap, or any scripts or workflow that would help to more easily isolate objects to export?  

Side note, is there any way to hide objects with a hotkey instead of clicking the eyeball? I searched through all the menus and couldn't find anything.  

Post edited by Falco on

Comments

  • Rather than using the eye ison in the Scene pane, select multiple items and use the Visible button in the Parameters pane.

  • FalcoFalco Posts: 241

    Oh, speaking of that, is there a way to shift select multiple items in the viewport or can you only do in in the scene tree?

  • Shift select works only in the Scene pane - I suppose it could work in the Viewport, using the order of items in the Scene pane to determine which items came between the two clicked, butt hat might be confusing and isn't in any event implemented. Only click and ctrl-click, to add/remove single items, work in the Viewport.

  • FalcoFalco Posts: 241
    edited December 2018

    Oh, I just meant ctrl/shift clicking to add to selection in the viewport like most 3d programs, which doesn't seem to work in daz.  

    So after doing some digging I found a post that showed you could script toggling visibility using the following snippet, which I was able to assign a hotkey to by creating a custom action, so now I have a show/hide hotkey which makes things a lot easier.  

    var startNode = Scene.getPrimarySelection();if ( startNode ) { var bNewVisibility; var nodes = [ startNode ]; nodes = nodes.concat( startNode.getNodeChildren( true ) ); if ( startNode.isVisible() ) {  bNewVisibility = false; } else {  bNewVisibility = true; } for ( var n = 0 ; n < nodes.length ; n++ ) {  nodes[ n ].setVisible( bNewVisibility ); }}

     

    Post edited by Falco on
  • FalcoFalco Posts: 241
    barbult said:

    Oh nice that's perfect!

  • ctrl-click to add/remove items from a selection should be working.

  • FalcoFalco Posts: 241

    ctrl-click to add/remove items from a selection should be working.

    It definitely doesn't work at all on mine, is there perhaps some setting I may have disabled that would have affected this?

  • You are using a node selection tool? And of course it's ctrl on Windows but cmd on Mac. Is there perhaps a big, but transparent, prop getting in the way of the clicking - so that you are just toggling its selection state rather than the items you want?

  • FalcoFalco Posts: 241

    Ah got it, apparently I have to control double click to get it to work, thanks!

  • Double-click will select the fiugre, instead of a bone.

  • FalcoFalco Posts: 241

    Ah, I'm mostly working with props for this use case, so makes sense.  

Sign In or Register to comment.