mcjMakeMeANiceObjCatalogPro
================================================================================
Introduction
================================================================================
A script that loads one after the other a series of obj files
frames them in the camera frame
exports a viewport capture of each one as an image ( .jpg or .png )
each image file has the same basename as the .obj file
then optionally creates an HTML web page that displays those images and their name
================================================================================
History
================================================================================
September 1st 2018 5:00PM - fixed premature call to fillist - fixed unclosed html file
August 12th 2018 6:02PM - Release V1
example of a "catalog" HTML web page which displays content from a folder and subfolder
================================================================================
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
================================================================================
Use
================================================================================
If you want the camera to frame only the catalog objects,
then deselect any scene object before launching this script.
Use the first browse button to specify the folder containing the .obj files
If you check the "Recurse" check-box, then the script will recursively visit all the sub-folders of this folder.
Use the second browse button to specify the folder which will receive the images
If you check the "Put the images in the same folder as the .obj" checkbox, then this folder will be ignored
and the images will be put in the same folder as the .obj files they represents
Note that the script will refuse to overwrite existing images ... Unless you use
The infamous "Overwrite existing images, i know what i'm doing" checkbox:
There is a "Dont create the images" checkbox which can be useful to update HTML-Catalogs quickly
The 'resize ...' checkbox will resize the objects to 1 meter wide,
Then the object will be moved so its center lies at x=0, z=0
Then the object will be dropped to floor level.
Then the image will be captured
The 'Leave loaded object(s) in the scene' option can be used to quickly load a few objects
The script will always produce square images.
So it may be better to set your render settings to 'square' proportions.
You can specify the width-height in pixels of the images produced using the "Dimensions in pixels for the images" slider
The 'HTML catalog' option create a web page in the folder you specified as containing the .obj files
The filename number corresponds to the date-time at which the html document was created
There is a "Number of columns in html catalog" slider to adjust the html catalog format
================================================================================
License
================================================================================
// by mCasual/Jacques
// You can use this script freely for personal or commercial use.
// You may not resell, distribute for profit, 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 NON-INFRINGEMENT. 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.