realXtend / tundra

realXtend Tundra SDK, a 3D virtual world application platform.
www.realxtend.org
Apache License 2.0
84 stars 70 forks source link

Way to get texture information #716

Closed mievaan closed 10 years ago

mievaan commented 10 years ago

At the moment there is way to insert new scale / rotation for texture, but there is no method to get current values from texture with script. It would be good feature especially when building undo.

jonnenauha commented 10 years ago

Let me clarify as we talked over email and I redirected him here.

Afaik he wants a way to OgreMaterialAsset to have a generic thing to get attributes, like it has for SetAttribute. So he could ask a loaded material for texture scale etc. information. Currently we only provide GetTextureUnit that returns a Ogre::TextureUnit* which is useless in a scripting context.