mcjObjBasedAnim

________________________________________________________________________

Introduction

________________________________________________________________________

This script will let you render sequences of .obj files in Daz Studio

for example a series of obj files containing a Blender Fluid Simulation

________________________________________________________________________

Installation

________________________________________________________________________

The zip package is found at the bottom of this page

unzip it in your daz content folder,

typically :

C:\Users\USERNAME\Documents\DAZ 3D\Studio\My Library

once installed, it will appear in your content library, under

The Daz Script will be found in My Library / Scripts / mcasual

Starting with Windows 7 if you right click on the downloaded zip file

and select the [Extract All ....] pop-up menu item

you simply browse up to your Daz Studio Content Folder

and the files will fall in the proper folder

________________________________________________________________________

Version History

________________________________________________________________________

August 11th 2020 - 9:56AM - Version 1 - Release

August 11th 2020 - 10:35AM - Version 2 - Now saves/restores the user's looping choice

AUGUST 14TH 2020 - 12:55PM - VERSION 3 -The script now leaves the render in the Render to new window mode, else for unknown reasons, the render insisted to render to the 3Dviewport

________________________________________________________________________

Instructions

________________________________________________________________________

You need a sequence of numbered .obj files

In the case of Blender, there is a checkbox in the wavefront obj exporter

which lets you save the current playrange as a series of obj files

start the script

use the 'Load' button to load one of your .obj files

we will call it the reference obj-prop.

The obj file gets imported as a Poser/Daz prop.

This needs to be done this way because Daz Studio's .obj importer would modify the position of the objects in the .obj file

Note that the reference .obj-prop will be made invisible at render time

Now Exit the script

Position, Scale, Rotate, the prop how you want it to be

Important tip

Make sure your reference obj-prop position/rotation/scale has at least 1 keyframe

else the copy/paste operation at render time wont work

Apply the desired materials to the surfaces, example: iRay Water shader

important: now select the reference obj-prop

Restart the script

First obj on disk and Last obj on disk Here you can see that the folder containing my teatime_000056 obj-prop

contained 120 .obj files, teatime_000001.obj to teatime_000120.obj

First obj to render and Last obj to render Here you can see i decided to use all the 120 .obj files

teatime_000001.obj to teatime_000120.obj

Looping behavior

lets say i render 240 animation frames but i have only 120 .obj files

ideally if the .obj animation is cyclical

here i get to select what happens when i get to frame 121

- go back to the first .obj on disc

- go back to the 'first obj to render'

- stay with obj 120

Output/Render settings

The rendering process will be under the control of the script

but make sure your render settings are appropriate for the number of renderings that will take place !

The script wont modify the renderer choice ( ex: iray ), the number of passes per render, the image size

here you can see my rendered images will be placed in D:\movies

the filkenames will be tea0001.jpg ... tea0119.jpg

The Start Sequence Render Button

Here's what happens when you press this button

The script copies the position, scale rotation ( Local space ) of the reference obj-prop

the script saves the reference obj-prop's surface materials in a materials preset file named thing.duf in the same folder as the .obj files

the script hides the reference obj-prop

the script creates a prop file on disc named thing.pp2 in the same folder as the objs

this prop file refers to the first .obj file to be rendered

the script loads this prop

the script pastes the position, scale and rotation saved earlier

the script applies the material preset to this prop

the script launches the render of the scene

...

repeat for each frame

License

// You can use this script freely for personal or commercial use.

// You may not sell, resell, sub-license or rent this script in any way.

// you may credit this script to mCasual/Jacques

// 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.

__________________________________________