mcjImportSimpleAsciiStl



THERE'S A NEW VERSION THAT SUPPORTS ASCII AND BINARY



==========
======================================================================
Introduction
================================================================================
THERE'S A NEW VERSION THAT SUPPORTS ASCII AND BINARY

This script will only import STL file in plain text format, aka ASCII format

And only if the file is formatted as a simple series of triangles

It's true that one could simply convert it to .obj by other means and import it

but lots of things are true

for instance it's true that this script generates a spherical UV map for the object


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

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

November 14th 2017 - Release




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


Click the DoIt button


select the STL-Ascii 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 wrote-protected folder


If the file is a binary format STL or is not a simple STL format, the import will fail but it should not crash your Daz Studio


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


the Binary-STL piggy-bank object was downloaded from

https://www.thingiverse.com/


Sparschwein, Piggy Bank
by Schichtwerkstatt, published Mar 31, 2017

i used this online utility here to convert it to ASCII STL

http://www.greentoken.de/onlineconv/



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





ċ
mcjimportsimpleasciistl.zip
(12k)
mCasual Jacques,
Nov 14, 2017, 4:51 PM
Comments