How to export only selected clothing as an object in DS

Is there a way to export a conformed and posed clothing figure as an object without exporting the character figure to which the clothing is conformed?
In other words I want the new clothing (and only the clothing) object to keep the shape it has whilst it is conformed and posed.
Post edited by IsaacNewton on
Comments
Yes there is a way - if you know how its easy.
1. go to Scene pane and select the clothing you want to export - go to Parameters pane PropertyGroup: General>Mesh Resolution Property: Resolution Level and set it to "Base"
2. right-click on the Scene pane and select Select>Invert Selection from the menu or press Ctrl+Shift+I - Now everything in the scene except the clothing should be selected
3. check if "Consolidate Properties" is enabled / checked in the Parameters pane Options Menu - then go to Parameters pane PropertyGroup: Display>Scene View and switch the "(number) Visible" Property to OFF for all selected Items at once - Now only the clothing Item should be visible
4. go to Main Menu: File>Export and choose FileType: Wavefront Object (*.OBJ)
5. in the OBJ Export Options dialogue choose Preset: "DAZ Studio (1 unit = 1cm)" also there is this checkmark for Ignore Invisible Nodes that does the trick - see the two screenshots I once have made to explain it here and there again and again
The good thing about this is you can also have the Smoothing Modifier active to collide with the character even it is invisible. Now you can create a Morph to eliminate "Poke through" but keep in mind to use the "Reverse Deformation" option in the Morphloader Pro options and dont change anything about the cloth or the character figures in the scene before import with Morphloader Pro or the Reverse Deformation wouldnt work like expected.
Export_OBJ-Options_IgnoreInvisibleNodes_1.png 382 x 507 - 61K | Export_OBJ_IgnoreInvisibleNodes.png 505 x 638 - 132K
Thanks
It makes me wonder that no one at DAZ thought .."Wouldn't it be a good idea to have this basic function available as a one click option?"
oops... having problems with this step:
3. go to Parameters pane PropertyGroup>Scene View and switch the Visible Property to OFF
In the Parameters Pane, where do I find Property Group?
sorry my fail - it should have read like this:
PropertyGroup: Display>Scene View
just expand the tree with the [G] symbols in front.
Parameters_PropertyGroup_DisplaySceneView_1.png 283 x 380 - 30K
My idea of these screenshots is once we have a bunch of them we can share them for different things to explain - feel free to use them for your own posts.
It looks like the Scene View is still refering to the clothing and not to everything else, so when I select Visible OFF, only the clothing disappears.
So the question is how do I get the "Scene View" to refer to the selected items and not the one unselected item (the clothing)?
By making everything except the clothing invisible I can export the clothing only. So, the trick will be to make everything in a scene invisible except the selected item....
OK? I thought this is the easiest step by step instruction I can give...I've Edit my 1st post to make it clear what should happen after the steps.
Dont forget this 2nd step that I think is a real timesaver.
Unlike other programs the DazStudio OBJ export just exports everything visible (with Ignore Invisible Nodes checked) in the scene and dont care about what you have selected before.
Maybe just click visible off one by one for everything you dont want to export - this may be easier - this is done by clicking the eye symbol in the Scene pane where it says V|S|Node.
Once you only see the clothing in the scene do the export with Base Geometry resolution!
"OK? I thought this is the easiest step by step instruction I can give...I've Edit my 1st post to make it clear what should happen after the steps.
Dont forget this 2nd step that I think is a real timesaver."
The instruction is clear, no problem there. The problem is that although the clothing is the only thing not selected in the Scene Pane, in the Parameters Pane, the "Display>Scene View" refers to the clothing and not the other items in the scene. I cannot see one "Display>Scene View" option for all the selected items.
Oh sorry - I just checked what caused this issue you had.
I didnt thought of the "Consolidate Properties" option switch that you can find in the Options Menu of the Parameters pane.
I have it on / checked by default. Now you should see the number of items you have selected in the brackets () in front of your Property to manipulate them all by one click (works also with morph sliders) for all selected Items. See the screenshot for details.
Parameters_ConsolidateProperties_1.png 510 x 264 - 42K
[PS] I've Edited my 1st Post to make this a clear instruction:
3. check if "Consolidate Properties" is enabled / checked in the Parameters pane Options Menu - then go to Parameters pane PropertyGroup: Display>Scene View and switch the "(number) Visible" Property to OFF for all selected Items at once - Now only the clothing Item should be visible
[Edit_1]: If you want to have an overview of the toggle Actions like "Consolidate Properties" on screen just add these Actions to some of your Toolbars - here you can see MyToolbar_Main:
More Info here: How to Customize Daz Studio - to speed up Workflow!? [WIP]
Other examples from this forum where people asking for a better option to save Pose Presets without to allways select everything by their own in the save dialouge:
please, help, ds script to make pose save-as preset?
Save Pose Preset script Question
Auto-save feature or script.
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/file_io/export_obj_silent/start
There is in fact a sample script available to do just this http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/file_io/export_obj_silent/start
Thanks for the API References.
I've picked my favourit options - now I just have to edit them to true - right? - save the "Silent OBJ Export.dsa" script and Customize my shortcuts for Silent OBJ Export : Ctrl+E
eg. you can have a "SilentSelected_OBJ-Export.dsa" - edit the first line "oSettings.setBoolValue( "SelectedOnly", true );" - Ctrl+S - Done
as I see it isnt that complicated.
But I cant find anything like "oSettings.setBoolValue( "Resolution Level:Base", true );" in it to set the Geometry resolution for silent Export.
I'm not sure where that would be, it should be findable by iterating over the members of oSettings ( for var n in oSettings ) { print ( n ) }; ) but for this you could also find the property on the object, get its value, set it to base, export, and restore the original value.
Thanks very much Syrus, this is most helpful.
I really think that DAZ should make this a basic one click option "Export this figure only, with modifications." rather than having to make sure half a dozen options in defferent sub menus are checked or unchecked.
Unfortunately compatability with high end software like Maya that is used by a small percentage of DS users, seems to be a higher priority!
Sorry, I'm not a programmer, I don't understand a word of that.
OK, there is a script to do this, so how difficult would it be to include a button/option in the export dialogue box to just export the selected object as it is currently shown on the screen? I'm sure I'm not the only one who would find that useful.
Download the script and put it somewhere you can find it in your content directory (e.g. in /Scripts/Utilities). Find the script in the Content Library, right-click, and select Create Custom Action - this will add the command to the Scripts menu, and create the Scripts menu if necessary. You can now use Window>Workspace>Customise to move it to a different menu if desired.
@IsaacNewton
As far as I understand this Silent_OBJ_Export.dsa script can be used as a template to write your custom Presets for the OBJ Export Options predefined Settings.
You just have to change some of the Settings in these lines "oSettings.setBoolValue(..., false);" to say true or the other way around - to control what Settings are choosen in the Custom OBJ Export Options.
@Richard Haseltine
And here is my complete custom script "Export-OBJ_Silent-Selected-DelLooseVerts.dsa" my modification of the original Silent_OBJ_Export.dsa script:
I think I found it: "oShape.findProperty("lodlevel")" but I dont know how to switch the value from "High Resolution" to "Base"?
OK. Sorry I just had a second look over the script - now I found it:
But I dont like it to pick the last used folder - you never knew which it was the last time you exported a OBJ manualy - can we have a predefined Path / Filename to save our OBJ files in silent mode or preselected them in the Save File dialogue?
Being able to save the object to a user specified folder at time of export is a must!
I once found how to acces all the possible path locations DazStudio knows about your content directories and user paths and such. I had a second look lately and I coudn't find them anymore. I should have bookmarked those. Possible locations I've allready looked.
API Reference » Object Index » DzSaveFilterMgr
API Reference » Object Index » DzFileDialog
API Reference » Object Index » DzExportMgr
There are much more directories DazStudio has acces to like the path the current scene file is saved to for example. I think you can even acces the current windows user documents path and such.
Nevermind I found them, they are members of the DzApp class. It can help to search the
API Reference » Object Index some times =)
Those functions return the possible save path as a string. You can construct some save path with the Current Author name as a sub folder for example.
API Reference » Object Index » DzApp
getDocumentsPath ()
String getHomePath ()
String getLoadSavePath ()
Boolean setTempPath ( String tempPath )
void restoreDefaultTempPath ()