It would be nice if objects with the transformation constraint or IPO drivers could target themselves. This would make certain things possible, for instance: You could easily animate a screw going into a surface by having the screw object’s Z axis position drive its own Z rotation by a specific amount. Then all one need do is animate the Z position of the screw and let the rotation take care of itself.
You can currently do this, but the screw object has to be parented to a system of at least 2 empties/bones.
i have tried something like this? with simple py-driver-settings
and a function to return the current framenumber like this
def framenumber():
scene = Scene.GetCurrent()
Frame = scene.getRenderingContext().currentFrame()
return Frame
in the pydrivers.py text and then used it with sin or cos
like
sin(p.framenumber())
in an ipo-pydriverentry to make some cyclic trembles. But if one uses the up-counting framenumber to drive the position … it will change it