Hi, this is my first attempt at scripting.
I figured that I could use Lazy Susan functionality in my sculpting, meaning having the object rotate at a predefined speed around an axis while I work on it.
So far I’ve managed to get the object to rotate in steps using buttons but here are a couple of problems preventing me from going further:
-
The object seems to flip at certain points during the rotation, I’m guessing that’s what’s referred to as gimbal lock?
How would one go about getting around that, just somehow rotate the other axes to compensate? -
When in a rotation loop I can’t actually use a brush on the object, which is the whole point.
I assumed there would be a way to rotate, check the brush and apply the portion it drew, check the amount of time that passed and rotate again, but I don’t see how I would do that, so any suggestions?
P.S. I’m basically using this line to rotate: [TransformSet, xPos, yPos, zPos, xSc, ySc, zSc, xRot, (yRot + (rotationSpeed * varDir)), zRot]