mcjImportStl




==========
======================================================================
Introduction
================================================================================
in case you are looking for it, the old and not as good ASCII-Only version is here:

This script will only import STL files whether in Binary or in ASCII/text format

the script generates a spherical UV map for the object



================================================================================

Credits
================================================================================

The code for fixing the spherical UV issues is derived from code by

Michael Thygesen https://mft-dev.dk/uv-mapping-sphere/


The code to convert 4 bytes in IEEE floating point number is derived from code by

Robert Murrell, 19 May 2012

https://www.codeproject.com/Tips/387989/Convert-Binary-Single-Precision-Value-to-Float-in


================================================================================

History
================================================================================

November 15th 2017 10:19 PM - Release



sofa model from thingverse

1:24 Sofa Scan
by PrettySmallThings, published Jul 18, 2012



================================================================================
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 


Eiffel Tower Spool Holder by apalexander @ Thingverse


================================================================================
Use
================================================================================


Click the DoIt button


select the STL file ( .stl )


the script will produce an .obj file in the same folder as the STL


so you must make sure the .stl file is not in a write-protected folder


The script generates a spherical UV map and looks OK if the object is centered at 0,0,0


the sofa object was downloaded from

https://www.thingiverse.com/


Scale - a scale of 100 is good for STL objects from Blender

Offset - here you see the result of specifying an offset (y) for the center of projection of the spherical UV map
iThe idea is, if the object stands on the floor ( y = 0 ) and the center of projection is 0,0,0 then you get a dome-projection UV map and if there's a floor at y=0, it's UV mapping will be unusable, so you would move the center above the floor.





License

// =====================================================================
// by mCasual/Jacques
// 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.
// ================================================================================
// Credits
// ================================================================================
// The code for fixing the spherical UV issues is derived from code by
// Michael Thygesen https://mft-dev.dk/uv-mapping-sphere
//
// The code to convert 4 bytes in IEEE floating point number is derived from code by
// Robert Murrell, 19 May 2012
// https://www.codeproject.com/Tips/387989/Convert-Binary-Single-Precision-Value-to-Float-in






ċ
mcjImportSTL.zip
(20k)
mCasual Jacques,
Nov 15, 2017, 7:31 PM
Comments