Hi,
I would like to create a non modal window to drive object location randomization to generate variations in the scene.
Is this possible at all?
Any other approaches?
Many thanks
Aleksandar
local function Randomize()
local rndRotate = {math.random(-maxXRot.value,maxXRot.value), math.random(-maxYRot.value,maxYRot.value), math.random(-maxZRot.value,maxZRot.value)}
local rndTranslate = {math.random(-maxXTr.value, maxXTr.value)/100, math.random(-maxYTr.value, maxYTr.value)/100, math.random(-maxZTr.value, maxZTr.value)/100}
placementTransformation:setAttribute(octane.A_ROTATION, rndRotate)
placementTransformation:setAttribute(octane.A_TRANSLATION, rndTranslate)
octane.changemanager.update()
end
Users browsing this forum: No registered users and 6 guests