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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Access Alembic animation offset?

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 283 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

      On 13/02/2013 at 07:03, xxxxxxxx wrote:

      Hi all,

      I can't seem to figure this out. I want to have my script acces the 'start of animation' parameter in the alembic objects in my object hierarchy. So far I have this:

      import c4d
      from c4d import gui
      c4d.CallCommand(100004768) #select children of selected object
      objs = doc.GetActiveObjects(1)
      for i in objs:
          if i.GetType() == 1028083:
              i[c4d.ALEMBIC_START_DELAY] = 10

      However the last line throws an error. Anybody know how to set a value for [c4d.ALEMBIC_START_DELAY] properly?

      Greets,
      Hans Willem

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 13/02/2013 at 07:22, xxxxxxxx wrote:

        That parameter needs a BaseTime as a value.

        Cheers
        Lennart

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 13/02/2013 at 07:39, xxxxxxxx wrote:

          Hi and thanks for the reply! I changed the last line to:

          i[c4d.ALEMBIC_START_DELAY] = c4d.BaseTime(12,doc.GetFps())

          And now it works! Thanks again!

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