Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Instant update

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 154 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post