Category | Scripting |
Created | 26.01.2015 17:18 |
Bohn Locke (Unknown) | 26.01.2015 17:20 |
---|---|
I'd like to be able to work with the value for the Id under attributes transform tab, so that I can do things like this, where 183 is the objectId, but I want to generalize this function for any objectId, not just 183. local refl,dirtval,texX,texY = getShaderParameter(183,"RDT"); local t = {refl,dirtval,texX,texY}; local n = {"reflection","dirt value","dirt scale x", "dirt scale y"} local key; local sKey = tostring(key); function getRDTparameters() print("RDT Shader Parameters:"); for key,val in ipairs(t) do print(n[key], ": ", val) end end getRDTparameters(); |
Emil Drefers (Unknown) | 11.02.2015 11:35 |
---|---|
Hi, please check this: http://ls-mods.de/scriptDocumentation.php?class=utils#indexToObject might help? A lot of scripts read an "index string" to get the object's "node id" after it has been loaded into the scene. Cheers, Emil |
Note: Log in to post. Create a new account here.