A script for clothes not worn
Please. Maybe from Code 66 or Riversoft Art?
A script which would be applied to any piece of clothing to do one of 3 things:
1) Be laid out flat
2) Be hung on a coat hanger
3) Be rolled up in ball and thrown on the floor
Post edited by Speculativism on

Comments
That isn't soemthing a script could do, unless there were standard morphs for those features.
Oh well, I can dream anyway.
I suppose There may be workarounds.
I could probably lay the clothing out flat using existing scale and transform sliders, roll the clothes up in a ball using D-Form perhaps.
Hanging the clothes up is probably the tricky one. Maybe could be done by pinning it in place and then using D-Force gravity simulation?
I was just thinking that all of these could be automated with a code.
I am sure it's possible for someone, but I do know my scripting ability is inadequate, and the problem is not insignificant.
For a shirt on a hangar the script would need to consider the following:
It is possible for scripts to access the vertex positions of a model, and also the normals (if not accessible in the model they can be calculated). As a majority of clothing has normals pointing outward, this convention makes it easier to program what to do with the facet and where it's assumed to fall. Facets close to the centreline will have little Z direction component to the normal, so can form the hinge by which the cloth is flattened. These facets will move out sideways a bit. As the front & back move more in line with the Z=0 plane, a random curtain style ripple could be added to the destination point of the facets to preserve the apparent width of fabric used. And possibly the vertices could be moved down a bit to keep the length of fabric appearing constant.
As I said, the problem is not insignificant.
To fold clothes, you'd need to flatten it as per being on a hanger, and then fold the clothing in pre-defined positions. Again possible, but less than easy.
Also, after the script, that instance of the article of clothing would not be capable of being used as a garment again.
Regards,
Richard
Layng out flat and hanging on a hanger might both be achieved with dforce. If it's actual dforce clothing (as opposed to normal clothes with a dforce modifier applied), you might need to override any dforce weight mapping first.
Thanks everyone. I eventually figured it out and it's a lot easier than I thought.
Poser's Cloth Room does it very quickly.
All I needed to do was import a piece of clothing to the cloth room and run a clothify simulation. The piece of clothing falls down onto the floor and lays there. Perfect!
Here's a few renders of a blouse before and after dropping onto the floor.
That's what dForce simulation does in Daz Studio. No need to go to Poser to achieve that result, unless you prefer to do it that way.
I guess one could Dforce the G9 Dev base at zero subdivision, save that as a morph by obj export, morphloader or Dforce2morph if you own it
the fit any clothing to that morphed figure, and hide the figure, not tried it, it could be awful
I'd give that 0% chance of success. Fitting to a dForced figure will fit to the original non-dForced shape and position.
While not a script but a way to make life easier, the PA @esha has two products that have extensive folded, thrown, hung (laundry or it looks like on a hanger). With shaders, a match to whatever your character might be wearing might work to show someone selecting a shirt or underwear from a drawer, closet, then wearing the items, later undressing and discarding the clothing item. They are much larger in scope that you see in the promos.
https://www.daz3d.com/messy-laundry-mega-set
https://www.daz3d.com/laundry-day-mega-set
Thanks again everyone. I'm a slow learner I suppose.
I have Daz Studio, Poser, Vue, Blender, Carrara, Bryce and some other 3D softwares. I'm slowly discovering all sorts of things which I didn't know they could do.
Each different software has all sorts of unexpected abilities, particularly the ones which all used to be owned by the same group of companies years ago and, consequently, share some features.
I'm limited by haviing a couple of older computers and not being currently rich enough to upgrade to better ones. The Poser clothifying room works very well on my old computer. The DForce thing takes a very long time and doesn't give the desired result. I think that's because it wants a more powerful computer.
Also JaRaMe's outfits always come with those kind of morphs - worth noting.