|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
08-05-2007 12:19
I'd like to use the llSetLinkPrimitiveParams() function to deal with textures. Problem is, I'd like to be able to specify scale, offset, and rotation sometimes, but other times, I do not want to specify them. Since I can't read them and re-fill those values, is there a way to do this without having a separate function call for each set of values I do or do not have?
For example . . . Do I need to have separate functions calls for setting texture name *only* vs setting texture name *and* texture scale?
Thanks, Baron
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
08-05-2007 12:40
From: Baron Hauptmann ... Since I can't read them and re-fill those values... But I think you can, with llGetPrimitiveParams--and I think you'll have to, unless there's some way to omit the repeats, offsets, and rotation args from the llSetPrimitiveParams PRIM_TEXTURE rule. You'll probably get NULL_KEY for the texture unless you have full perms on it, but the other values should be returned.
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
08-05-2007 12:50
But there's no llGetLINKPrimitiveParams, which is the problem. 
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
08-05-2007 13:45
Use llSetLinkTexture() to just change the texture.
There are no other llSetLinkxx calls for the other texture options, so you have to set all of them at once with llSetLinkPrimitiveParams(), which means remembering those settings in your main script, or putting scripts into each prim again which can change the individual settings.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
08-05-2007 14:05
From: Baron Hauptmann But there's no llGetLINKPrimitiveParams, which is the problem.   oops. And that's one of my pet aggravations, too.  wants to change that. Till then, as Talarus said, it's one of: different calls for just texture vs texture & settings, remembering those settings in a single script, or little scripts in each to-be-textured prim.
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
08-05-2007 14:18
Well, that's kinda what I figured, but I also figured it would not hurt to pick other scripters' brains!
|