Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. Zebru
    Z
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Zebru

    @Zebru

    0
    Reputation
    30
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Zebru Unfollow Follow

    Latest posts made by Zebru

    • Timeline control via OSC and EventAdd doesnt update the scene

      Hello!

      I'm new to the forum so hopefully this is the right place to ask 🙂

      I'm using the fOSC pluggin (https://github.com/fillmember/fOSC) to read an external timecode (basically, the frame number position of another program) in c4d.

      This plugin stores the variable into a null object X position so I’ve written this code for it:

      def main:
      	obj = op.GetObject()
      	frame = obj[c4d.ID_BASEOBJECT_REL_POSITION, c4d.VECTOR_X]
      	fps = doc[c4d.DOCUMENT_FPS]
      	time = c4d.BaseTime (frame, fps)
      	doc.SetTime(time)
      	c4d.EventAdd()
      

      The thing is that the timeline cursor moves accordingly but the scene is not updated (EventAdd seems not to work) and moreover: this happens on a PC but on a MAC it works. And of course I have to use a PC 😞

      Someone has any idea on what’s going on?

      Thank you very much in advance!

      Zebru

      posted in Cinema 4D SDK python
      Z
      Zebru