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?
ScriptInterface:CreateShape - any idea why the default frame is -1000000?
Moderators: Víctor Paredes, Belgarath, slowtiger
ScriptInterface:CreateShape - any idea why the default frame is -1000000?
________________________________________________________________________
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
- synthsin75
- Posts: 9968
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: ScriptInterface:CreateShape - any idea why the default frame is -1000000?
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
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
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: ScriptInterface:CreateShape - any idea why the default frame is -1000000?
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
https://mohoscripting.com/ - Unofficial Moho Lua scripting documentation
https://mohoscripts.com/ - The best place to publish and download scripts for Moho
- hayasidist
- Posts: 3513
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: ScriptInterface:CreateShape - any idea why the default frame is -1000000?
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).