Instant update
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/12/2010 at 10:21, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Mac OSX ;
Language(s) : PYTHON ;---------
Hi Guys, I'm new to this Forum.I'm tryng to constrain an object to a point of a selected spline (animated with spline dynamics). I tried to use "camera dependent" option or "Frame Dependent" option, but doesn't work for me.
The real problem is when I render the scene and there is always a delay between the object and the target point.Here my code
import c4d
def main() :
obj = op.GetObject()
Tag = obj.GetFirstTag()
Spline = Tag[c4d.ID_USERDATA, 2] #the spline
SplineObj = c4d.utils.SplineHelp()
SplineObj.InitSpline(Spline)
pointpos = SplineObj.GetPos(10,0)
obj.SetAbsPos(pointpos)
obj.Message(c4d.MSG_UPDATE)If anyone has any tips or has done something like this, I would appreciate any advice or direction.
Thanks,
Luther