mcjObjsToMorphingProp
Introduction
mcjObjsToMorphingProp will convert a series of obj files into an animated morphing prop.
using this, you can create a cloth simulation in Poser or Blender and integrate it in your Daz Studio movies!
Since each obj file becomes a morph, you should limit the length of your animations and the complexity of the cloth/garment
In my tests i used 1000-faced table cloths and capes. and my animations were less than 200 frames.
Also, you must use obj files which contain the exact same objects.
Trying to export a Carrara particle effect will not work since the number of particles varies through time.
History
June 1st 2012, 9 am
release
Installation
The zip package is found at the bottom of this page
unzip it in your daz content folder, typically C:\Program Files\DAZ\Studio\content\
once installed, it will appear in your content library, under Studio / Scripts / mcasual
Use
see below for a quick review of the ways to produce sequences of obj files
Lets say you created a sequence of obj files using Poser
sheet_0_0.obj, sheet_0_1.obj ... sheet_0_99.obj
Import the first object in your sequence of objects using Daz Studio's File/Import/Wavefront .obj
in our example we import sheet_0_0.obj and we use "Poser" as the import settings
select the imported object
launch mcjObjsToMorphingProp located in your library in Studio / Scripts / mCasual
The UI looks like this
Click the 'browse...' button and browse up to the first .obj file of your sequence of obj files.
in our example f:\roma\sheet_0_0.obj
the script already went through your list of .obj files and knows how many there are.
select the appropriate scale in the "obj import scale" section,
in our example we select "Poser ( 243.84 )"
Click on the [Objs to Morphs] button.
conversion to morphs will take a few minutes depending on the number of frames and the complexity of the objects.
Animating the prop
The entire playrange will be animated, so, be sure to set the timeline's playRange to the desired range.
in our example we set it to [ 0 ... 99 ]
if the playrange has more frames than the prop has morph channels, the animation will loop.
In the 'morph animation' section, specify which morph channels will be involved in the animation.
in our example we want all morphs used, from channel 0 to channel 99
( morph 0 is in fact the object with all morph channels zeroed )
Saving, re-using your new prop
You could now save your prop as a scene file.
You could also use utility PP2Exporter to save it as a genuine poser prop.
Then use the utility "Poser Format Exporter v1.3" to export the animation.
To reuse the prop, load it, or load/merge the scene it was saved in.
Clear the animation using the parameter tab's Clear Selected Item"
select it
launch mcjObjsToMorphingProp
use the "animate morphs" button.
Exporting a cloth simulation from poser 7
A tutorial about using Poser's cloth simulation is beyond the scope of this document.
here's a few link which may help you
http://my.smithmicro.com/tutorials/1619.html
www.youtube.com/watch?v=QLBt9WKWl-Y
http://www.techtut.com/Tutorial/Poser/63-Working-with-clothes-in-Poser.html
http://my.smithmicro.com/tutorials/2313.html
( i simply Googled for poser cloth tutorial
Once the simulation is done, select the cloth object
do a File / Export / Eavefront obj
then select "multi frame export", and specify the range of frames
deselect everything in the scene select only the cloth
you may leave the export options as-is, i un-checked the "weld" option
this 30-frames simulation of a 32x32 cloth took only a few seconds to export
and here's the result, imported and rendered in Daz Studio!
License
//===================================================================
// by mCasual/Jacques
//===================================================================
// Copyright (c) <2012> <mCasual/Jacques>
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to use and copy the Software.
//
// Selling, re-selling the software, unmodified, is not allowed.
//
// Subject to the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
//===================================================================
More Examples
click to view animation
blender simulation imported and rendered in Daz Studio, software render
click to view animation
Carrara, 3 frames exported "manually"
imported and rendered in Daz Studio, software render
click to view animation
exported from Daz Studio using mcjTeleBlender
imported and rendered in Daz Studio, software render