Export Single OBJ from Scene

So if I have a scene with a lot of objects, and I just want to export one of those objects, how do I do it? If I select the object in the scene and export, it sends the entire scene to the OBJ. Does it send everything that's visible? Which means I'd have to group all the other stuff and make it invisible?

Thanks. 

Comments

  • kitakoredazkitakoredaz Posts: 3,526

    Yes you use group. then hide another item. or some app can separate but keep vertex order. if you export figure.

    but to make your work easy,, you may better , use group then hide anotehr (include all child node which you need not)

    or once select and hide all,, then only select item root node, you need to export, then select children. (but not include parented item (eg eye glass or weapon),,you need to check those one by one)

  • ebergerlyebergerly Posts: 3,255

    Great, thanks. And to then ungroup them, just select all items inside the group (not the group itself), and right click and "unparent selected objects".

  • kitakoredazkitakoredaz Posts: 3,526

    One thing I do not like group,, it need to break,, node structure of complex scene often,  then I request daz up-date export obj option,, just add "export mesh which selected (root) only."

    then I simply select root node,,which I need only,, or add new selection node groups (which keep current node hieralchy)  for scene.  which user can save with scene as same as some another app. and we can free customize, name group.  (we have selection group in poligon editor,, why it not work with scene and each figure,and prop?)

     I do not know why daz do not adopt  my cool stylish excelent idea,,,, 

  • Richard HaseltineRichard Haseltine Posts: 102,443

    Rob does have a sample script that may help http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/file_io/export_obj_silent/start You would want to edit the parameters here to give the desired result

    		// If the version is 4.5.0.114 or newer		if( App.version64 >= 0x0004000500000072 ){			// Do not limit export to selection			oSettings.setBoolValue( "SelectedOnly", false );			// Do not limit export to the selected roots			oSettings.setBoolValue( "SelectedRootsOnly", false );			// Do not limit export to the primary selected root;			// this setting overrides SelectedRootsOnly			oSettings.setBoolValue( "PrimaryRootOnly", false );			// Do not export items that are parented to the selection			oSettings.setBoolValue( "IncludeParented", false );			// Do not triangulate n-gons			oSettings.setBoolValue( "TriangulateNgons", false );

     

  • kitakoredazkitakoredaz Posts: 3,526

    Thanks I try it later.  Can I change to show window as same as DAZ obj exporter,,, but keep selection only as default,,, then choose  another setting ?

    because I often need to change scale, and other option, I believe, ,,, ,,,, or I may need to each scritp for each case,,, ok,,, I try by my self,, if I could  first,,)

  • Richard HaseltineRichard Haseltine Posts: 102,443
    edited June 2017

    You can set preferences in the script and then display the dialogue pre-populated with those options, I think, but it's not something I've tried. Of course if you know which values you want to enter you can do that via the script (or make multiple versions for different common settings).

    Post edited by Richard Haseltine on
  • just turn off visibility on the ones you don't want... make sure the one you want is selected and then in the export box ... make sure "ignore invisible" is selected... 

Sign In or Register to comment.