Navigation

    • Register
    • Login
        No matches found
    • Search
    1. Home
    2. Zebru
    Z

    Zebru

    @Zebru

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

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    Zebru Follow

    Best posts made by Zebru

    This user hasn't posted anything yet.

    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 •