Issue 6638
GetUvData always returns 0.0 for rotation instead of the correct value
Hi,
When I call the method:
material_component = avatar.GetMaterialComponent()
material_component.GetUvData(mesh_name, material_name, texture_channel, uv_offset, uv_tile, uv_rotate)
uv_rotate always returns 0.0. I am able to set the rotation value with the method: AddUvDataKey successfully though.
I would also like to point out that your API documentation for the method:AddUvDataKey on your site is wrong.
On
https://manual.reallusion.com/iclone/script/python/class_r_l_py_1_1_r_i_material_component.html it reads:
...
material_component.AddUvDataKey(RLPy.RGlobal.GetTime(), mesh_name, material_name, texture_channel, uv_offset, uv_tile, uv_rotate)
...
def RLPy.RIMaterialComponent.AddUvDataKey ( self,
kTime,
strMeshName,
strMaterialName,
eChannel,
kUvOffset,
kUvTile,
fUvRotate
)
...
But in fact the first parameter to this method is: kKey [IN] The key for time and transition control - RLPy.RKey
This is correct on the Wiki though:
http://wiki.reallusion.com/IC_Python_API:RLPy_RIMaterialComponentCheers,
Martin
Submitted byelMartino
Jan 30, 2020