can scripts work on timeline keyfame synchronous?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Defims
Posts: 19
Joined: Sun May 30, 2010 11:34 am
Contact:

can scripts work on timeline keyfame synchronous?

Post by Defims »

first question,I want to write a script which will synchronize two layer keyframes when i edit the keyframe in one layer, how can i achieve this,can anyone tell me ?

second question,I found "MOHO.UpdateTable = {}" and "function MOHO.RunUpdateTable(moho)" in lm_utilities.lua, but it seems moho param break when i call other way like the code below in my tool script:

Code: Select all

table.insert( MOHO.UpdateTable , function()  
    print(type(moho.layer))--return nil in version 9.5,and works right before v9.5 which confused me 
end)
Post Reply