Importprimscript

==Introduction==
importprimscript is a complement to Qarl Linden's Advanced_Sculptie_Exporter_From_Maya. Once you've exported a folder of files using his script, this program will log in to Second Life using an account of your choice, upload all of the textures, and rez the entire sculptie structure. Sculpt maps are compressed with a single layer lossless JPEG2000 encoding while textures use the traditional five layer lossy JPEG2000 encoding.
== Download ==
* 1.4.2(x64) (Works with 64-bit Windows Vista; More secure than previous versions (objects now rez with Allow Anyone To Copy/Move turned off by default instead of on); Functionality that had been broken by SL server 1.20 is restored)
* 1.4.2(x86) (Works with 32-bit Windows Vista and XP; More secure than previous versions (objects now rez with Allow Anyone To Copy/Move turned off by default instead of on); Functionality that had been broken by SL server 1.20 is restored)
* 1.4.0(x64) (Compatibility added for 64-bit Vista; Functionality that had been broken by SL server 1.20 is restored)
* 1.3.0 (Uploads go in to an inventory folder, more reliable file uploads)
* 1.0.2
== Source ==
* https://github.com/openmetaversefoundation/libopenmetaverse/tree/master/Programs/importprimscript
* http://openmv.org/svn/libsl/libopenmetaverse/branches/modularized/Programs/importprimscript/
* http://openmv.org/svn/libsl/libopenmetaverse/branches/simd/Programs/importprimscript/
==Requirements==
If you are on Windows you will need the .NET 2.0 framework. On other platforms, a current version of Mono is required.
===Linux/OSX Users===
The current version does not ship with a binary of the openjpeg-libsl library. You will need a current copy of libsecondlife, and to run "make" (or "make osx" on OSX) in the openjpeg-libsl directory and copy the resulting .so or .dylib file to the importprimscript directory. A future release will contain openjpeg-libsl binaries for 32/64-bit Linux and Intel OSX.
==Usage==
This program is meant to be run from the command line. All input is fed through command line parameters and the program runs and periodically outputs status information to the console. Eight parameters must be passed in (multiple word parameters must be enclosed in quotes), using this order: FirstName LastName Password Simulator X Y Z Primscript.
* FirstName: The first name of the avatar you are going to use to import the structure. This avatar will be listed as the creator, although the object will have full permissions so you can copy it with another avatar. This avatar cannot be logged in before you run the program, so if you are already logged in to Second Life this must be an alt account.
* LastName: The last name of the avatar that is going to import the structure.
* Password: The account password. This password is hashed before being sent to the login server and is never sent to any other sources, running this program is as safe as running the official Second Life client.
* Simulator: The name of the simulator you want the bot to log in to and create the import in. Examples are Hooper or "My Region" (notice the quotes).
* X, Y, Z: Coordinates to log the bot in to the simulator and rez the structure at. These are whole numbers between 0 and 255.
* Primscript: The path to the primscript file to import. Lets say you installed this program to c:\importprimscript\ and exported a folder of textures and the primscript file from Maya in to c:\importprimscript\myexport, and the primscript file is named myexport1.primscript. The command line argument could be either the relative path myexport/myexport1.primscript or the absolute c:\importprimscript\myexport\myexport1.primscript.
==Optional GUI==
To make things a little more user friendly, there is an optional GUI for controlling the upload utility. Basically, just move sculptgui.exe to the folder with importprimscript.exe in it, and then double click the GUI to use it.
The GUI is Windows only. It could be compiled for Mac with little trouble, only the developer's Mac is broken.
Category:Sculpted_Prims