Please take a look at the ScriptInterface:CreateShape method. The default value for the frame is -1000000. Any idea why?
Can that be the root cause for the notorious negative keyframes that can significantly slow down the performance?
________________________________________________________________________ https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation https://mohoscripts.com/ - The best place to publish and download scripts for Moho
I don't remember off hand, but there's several animation channels that write default values to frame -1000000. I assume this was done because the sequencer can move a layer's frame zero into the animation timeline. These usually aren't a problem for performance.
My Negative Keys script usually solves any negative keyframe performance problems, without touching those -1000000 keyframes: viewtopic.php?f=12&t=32714
________________________________________________________________________ https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation https://mohoscripts.com/ - The best place to publish and download scripts for Moho
I'll make mention here of the negative keyframes used by animated scatter brush items such as "bubbles" -- these are in the first few negative frames (e.g. -10 to -100).