ScriptInterface:CreateShape - any idea why the default frame is -1000000?

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

ScriptInterface:CreateShape - any idea why the default frame is -1000000?

Post by Stan »

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
User avatar
synthsin75
Posts: 9964
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: ScriptInterface:CreateShape - any idea why the default frame is -1000000?

Post by synthsin75 »

Hey Stan,

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
Stan
Posts: 199
Joined: Sun Apr 19, 2009 3:22 pm

Re: ScriptInterface:CreateShape - any idea why the default frame is -1000000?

Post by Stan »

Nice to know, thank you Wes!
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
User avatar
hayasidist
Posts: 3500
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: ScriptInterface:CreateShape - any idea why the default frame is -1000000?

Post by hayasidist »

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).
Post Reply