Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to get importprimscript to work?

Paulo Dielli
Symfurny Furniture
Join date: 19 Jan 2007
Posts: 780
10-15-2007 09:24
I've downloaded importprimscript from https://wiki.secondlife.com/wiki/Importprimscript. The unpacked zip contains the following files:

- importprimscript.exe
- libsecondlife.dll
- openjpeg-libsl.dll
- openjpegnet.dll
- openjpegnet.dll.config

I don't know how this program works. When I double-click the exe, I see a quick flash of the black command line box, but then it is gone again. I have Vista and .NET Framework 3.0. Should I run it from within Maya or place the above files in another directory?
Johan Durant
Registered User
Join date: 7 Aug 2006
Posts: 1,657
10-15-2007 09:47
in another thread
From: Johan Durant
Alright, I whipped up a GUI for the Importprimscript:
http://www.fileden.com/files/2006/10/8/271989/sculptgui.zip

It's for Windows and works by putting the program in your importprimscript directory.

I haven't actually tested it to see if it works, I just wrote it based on the instructions on the wiki page. Someone test it and tell me if it actually works.
_____________________
(Aelin 184,194,22)

The Motion Merchant - an animation store specializing in two-person interactions
Paulo Dielli
Symfurny Furniture
Join date: 19 Jan 2007
Posts: 780
10-15-2007 14:37
Thanks Johan, but I still don't understand. I've put the GUI in the importprimscript directory and it starts up. But how do I choose my Maya project? Up till now I used the MEL script to export the texture for a model I made in Maya. Do I still have to use it now?
Johan Durant
Registered User
Join date: 7 Aug 2006
Posts: 1,657
10-15-2007 16:28
On the wiki page it points to a new export script to use in Maya. That creates the prim script which the importer needs.
_____________________
(Aelin 184,194,22)

The Motion Merchant - an animation store specializing in two-person interactions
Paulo Dielli
Symfurny Furniture
Join date: 19 Jan 2007
Posts: 780
10-15-2007 19:19
Damn, I must be stupid. I looked at the page https://wiki.secondlife.com/wiki/Advanced_Sculptie_Exporter_From_Maya#Maya_Scripts and loaded/saved the sculpt.mel script into Maya.

But the output is still a .bmp texture, so no script that i can load into the GUI. I can't believe that I can't figure it out. Sorry Johan, please a clue again?
Johan Durant
Registered User
Join date: 7 Aug 2006
Posts: 1,657
10-16-2007 06:31
I wish I could help, but refer again to my quoted post...
From: Johan Durant

I haven't actually tested it to see if it works, I just wrote it based on the instructions on the wiki page. Someone test it and tell me if it actually works.

In other words, I don't know anything about the import script beyond what's on the wiki.

That said, the wiki indicates that the output is a folder of stuff; are you sure you grabbed the new MEL script from the advanced exporter page and aren't simply looking at the bitmap generated before by the old script?
_____________________
(Aelin 184,194,22)

The Motion Merchant - an animation store specializing in two-person interactions
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
10-16-2007 07:10
From: Paulo Dielli
When I double-click the exe

There's your problem right there. You shouldn't be double clicking anything. Importprimscript.exe works only by command line, just like it says on the wiki page. Go back to the wiki, and read the instructions. You'll find them listed under Usage.

If you don't already know some basics of using a Windows command line, I'd suggest not using this until you've read up a little on the subject.

From: Paulo Dielli
Damn, I must be stupid. I looked at the page https://wiki.secondlife.com/wiki/Advanced_Sculptie_Exporter_From_Maya#Maya_Scripts and loaded/saved the sculpt.mel script into Maya.

But the output is still a .bmp texture, so no script that i can load into the GUI. I can't believe that I can't figure it out. Sorry Johan, please a clue again?

Make sure you have the checkbox for "Generate Primscript" turned on. Depending on which version of the script you have, that box may be blocked from view by a scrollbar. Search the script for the word "scrollable". If it has a 1 next to it, change it to a 0, and reload the script.

You'll also need to have it set to bake textures in addition to just producing sculpt maps. The importprimscript uploader requires the presence of all sculpt maps and all surface textures for your object to be in the same folder, named the way the advanced sculpty exporter names them. If any are missing, the process will fail.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Paulo Dielli
Symfurny Furniture
Join date: 19 Jan 2007
Posts: 780
10-17-2007 19:56
Ah damn. I think I am doing everything right, but the sculpty doesn't get delivered in-world.

- I made only one nurbs cylinder in Maya to test and gave it 'Assign new material > Lambert' to generate a texture. I didn't do lights but I don't think that's important for this test, is it?
- New Mel script is working. I get no errors in Maya. Changed 'scrollable' and checked 'Maximize Scale', 'Bake surface texture' and 'Generate primscript'.
- Output is three files: test.primscript, test-pasted__nurbsCylinder1.bmp (sculpt texture) and test-pasted__nurbsCylinder1-surface.bmp (texture bake).
- I have placed the three files into the folder where also the importprimscript.exe is.

- I am not in-world and I type the following line in the command line window from importprimscript.exe (password is my actual password):

importprimscript.exe Paulo Dielli password "The Rookery Bay" 223 226 22 test.primscript

- command line window says the following (numbers replaced by xxxx):

Login succeeded, pausing for a moment...
Finished uploading image test-pasted__nurbsCylinder1.bmp, AssetID: e66cd3eb-e7cc
-ee41-67b4-ab0c100cxxxx
Finished uploading image test-pasted__nurbsCylinder1-surface.bmp, AssetID: d0958
964-0ee1-ab40-4ad5-a26144afxxxx
Timed out waiting for prim pasted__nurbsCylinder1 to rez, skipping
Rezzed, textured, and linked 0 sculpted prims, logging out...

- Then i go in-world again, but I see no prim.

Omg what am I doing wrong? Isn't there an easier way to get a sculpty texture without compression loss in sl?

Johan and Chosen, thanks so much for your tips already.

[edit:]

I have tried five times to upload the sculpty with Importprimscript. It also shows on my Transaction History page. One of the five entries is:

Date: 2007-10-17 19:36:22
Type: Gift
Desc: importprimscript
Region: The Rookery Bay
Destination: SYSTEM

But I didn't find a gift or script in my inventory or a sculpty on my land. :(
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
10-18-2007 07:38
From: Paulo Dielli
- I made only one nurbs cylinder in Maya to test and gave it 'Assign new material > Lambert' to generate a texture. I didn't do lights but I don't think that's important for this test, is it?

If you don't put lights in the scene, then your surface texture will turn out completely black. It won't affect your sculpt map or anything else though. You'll simply end up with a sculpty that happens to be colored black.


From: Paulo Dielli
- New Mel script is working. I get no errors in Maya. Changed 'scrollable' and checked 'Maximize Scale', 'Bake surface texture' and 'Generate primscript'.

Don't forget Correct Orientation. Without it, your sculpty may turn out inside out.

From: Paulo Dielli
- Output is three files: test.primscript, test-pasted__nurbsCylinder1.bmp (sculpt texture) and test-pasted__nurbsCylinder1-surface.bmp (texture bake).

Sounds right.

From: Paulo Dielli
- I have placed the three files into the folder where also the importprimscript.exe is.

Unnecessary. Those files only need to be in the same folder as each other. The importprimscript.exe program can be anywhere (as long as the DLL's and the config are in the same folder with it). To keep your projects organized, I'd recommend having the program be in its own folder, and then have a separate folder for each project's outputted files. Just be sure to type the full command path to the appropriate folder for each upload and everything will be good.

From: Paulo Dielli
- I am not in-world and I type the following line in the command line window from importprimscript.exe (password is my actual password):

importprimscript.exe Paulo Dielli password "The Rookery Bay" 223 226 22 test.primscript

- command line window says the following (numbers replaced by xxxx):

Login succeeded, pausing for a moment...
Finished uploading image test-pasted__nurbsCylinder1.bmp, AssetID: e66cd3eb-e7cc
-ee41-67b4-ab0c100cxxxx
Finished uploading image test-pasted__nurbsCylinder1-surface.bmp, AssetID: d0958
964-0ee1-ab40-4ad5-a26144afxxxx
Timed out waiting for prim pasted__nurbsCylinder1 to rez, skipping
Rezzed, textured, and linked 0 sculpted prims, logging out...

- Then i go in-world again, but I see no prim.

The reason you see no prim is because your connection timed out. Why this happend, I don't know. Looks like your two images did upload successfully though. You could always put the UUID's in a script and create your object that way. It's certainly not as elegant, and you shouldn't have to do it, but it should work.

This probably isn't related, but just to make sure all bases are covered, pasting objects from one scene to another sometimes leads to naming problems, which in turn can cause all manner of other issues. Instead of pasting, try creating an object from scratch in the scene. See if it makes any difference.

From: Paulo Dielli
Omg what am I doing wrong? Isn't there an easier way to get a sculpty texture without compression loss in sl?

Unfortunately, no. At least not until LL gets around to fixing the bug. There is that web-based uploader program on the wiki, but there are arguments back and forth about whether it actually works. And even when it does, you then need to apply your sculpt map via script because it doesn't actually end up in your inventory.

In any case, the real power of importprimscript is not in the lossless uploading, but in the automated assembly. When you're making complex multi-sculpty objects, it can be a real pain to upload all the sculpt maps and all the textures by hand, create and size all the sculpties by hand, and then apply all the textures to them by hand. For a sufficiently complicated object, that could take an hour or more, but with importprimscript, it just takes a minute or two.

From: Paulo Dielli
Johan and Chosen, thanks so much for your tips already.[/quote
NP

From: Paulo Dielli
[edit:]

I have tried five times to upload the sculpty with Importprimscript. It also shows on my Transaction History page. One of the five entries is:

Date: 2007-10-17 19:36:22
Type: Gift
Desc: importprimscript
Region: The Rookery Bay
Destination: SYSTEM

But I didn't find a gift or script in my inventory or a sculpty on my land. :(

Careful. Every time you upload an image, you are paying the L$10, even though the textures don't actually end up in your inventory.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
10-18-2007 08:06
From: someone
Timed out waiting for prim pasted__nurbsCylinder1 to rez, skipping


Are you sure build was allowed at the location where it logged in? Maybe the asset server was having trouble at the time? Did you log in with the normal viewer and double check to see if the prim(s) eventually rezzed?

I don't actually know the program, so I understand I may actually be completely misinterpreting the error message... (:
_____________________