Access Alembic animation offset?

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

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

That parameter needs a BaseTime as a value.

Cheers
Lennart

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!