1/ I didn’t found any officially way to get and set the value of Repeat U/V.
Now, I have a workaround to get the value of “Repeat U/V” by calculate from the matrix that I got from this code:
Code:
my_mtl[:brdf][:diffuse_tex][:uvwgen][:uvw_transform].matrix
(I tried to change value inside the above matrix but it doesn't updated, seem like readonly)
2/ When I set the Rotation of texmap, the UI value updated correctly but texmap doesn’t rotate at all.
Please watch this video to see the problem: https://www.youtube.com/watch?v=3n_vuxQ5gCw
Code:
context = VRay::Context.active scene = context.scene my_mtl = scene['/box'] scene.change{ my_mtl[:brdf][:diffuse_tex][:uvwgen][:rotation] = 0 }
Comment