These forums are CLOSED. Please visit the new forums HERE
How to Insert Asset UUID in particle script |
|
|
Ethan Habsburg
Shop Keeper
Join date: 2 Jan 2006
Posts: 98
|
10-18-2007 11:21
this is a line from the Jopsy particle script I'm using "PSYS_SRC_TEXTURE, llGetInventoryName(INVENTORY_TEXTURE,0), Where do I insert the Asset UUID in this?
|
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
10-18-2007 11:30
That line uses the first texture it finds in the objects inventory.
To specify the UUID of some other texture, I think you'd want to use... [PSYS_SRC_TEXTURE, "{013245-1234245-13141-231-312}", ...] ..instead of.. [PSYS_SRC_TEXTURE, llGetInventoryName(INVENTORY_TEXTURE,0), ...] Using, of course, a real UUID, not one I just stomped on the keyboard to get. _____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224 - If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left |
|
Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
|
10-18-2007 12:53
http://wiki.secondlife.com/wiki/LlParticleSystem
PSYS_SRC_TEXTURE is declared as a string. llGetInventoryName(INVENTORY_TEXTURE,0) is returning the name of the first texture found in 'Contents' as a string. However, ..you may specify an asset key UUID for a texture. When you do this, there is no need to use the curly brackets within the speech marks, as these will be passed to PSYS_SRC_TEXTURE as part of the string. Doing this breaks the recognised UUID format and so the particle system will use the default texture, rather than the one that you intended. Therefore the parameter should be passed as: PSYS_SRC_TEXTURE, "013245-1234245-13141-231-312" Having the curly brackets creates a different particle effects to not having them More usually you would use the UUID like this: string texture = "013245-1234245-13141-231-312"; llParticleSystem([.... .... .... .... PSYS_SRC_TEXTURE, texture]); |
|
Ethan Habsburg
Shop Keeper
Join date: 2 Jan 2006
Posts: 98
|
10-19-2007 10:31
Thanks Debbie, this...PSYS_SRC_TEXTURE, "013245-1234245-13141-231-312"... worked
I have other scripts that use the texture = " " Ethan |