### Basic Lua Scripting Example in SpliceKit Source: https://github.com/commandpost/fcpcafe/blob/main/docs/news/20260409-02.md This example demonstrates a simple Lua script using the `sk` module to get the current clip information. It requires the Lua VM to be running. ```lua return sk.clips() ``` -------------------------------- ### Check for Specific FxPlug Installation Source: https://github.com/commandpost/fcpcafe/blob/main/docs/developers/fxplug.md Combine `pluginkit` with `grep` to quickly check if a specific FxPlug, such as BRAWToolbox, is installed on your system. ```bash pluginkit -m -p FxPlug | grep "BRAWToolbox" ``` -------------------------------- ### Magnetic Timeline Tutorial Entry Point Source: https://github.com/commandpost/fcpcafe/blob/main/docs/news/20260410-01.md New selector and URL key for accessing the magnetic timeline tutorial. ```objective-c New selector showMagneticTimelineTutorial: New URL key PEMagneticTimelineTutorialURL ``` -------------------------------- ### Get Start Time for Effect Source: https://github.com/commandpost/fcpcafe/blob/main/docs/news/20231212-05.md Retrieves the start time for a specific effect. ```Objective-C CMTime startTimeOfInputToFilter = kCMTimeZero; [timingAPI startTimeForEffect:&startTimeOfInputToFilter]; ``` -------------------------------- ### SpliceKit: Startup Diagnostics Source: https://github.com/commandpost/fcpcafe/blob/main/docs/_includes/news/20260414.md Enables comprehensive startup diagnostics within the dylib for detailed analysis of the application's initialization process. ```bash # Conceptual command to enable diagnostics # export SPLICEKIT_ENABLE_DIAGNOSTICS=true # ./splicekit_dylib --run-diagnostics ``` -------------------------------- ### Sync Clip Example Source: https://github.com/commandpost/fcpcafe/blob/main/docs/developers/fcpxml.md An example of a sync-clip element, illustrating its offset, name, start, and duration attributes in FCPXML. ```xml ``` -------------------------------- ### Get Start Time in Timeline Time Source: https://github.com/commandpost/fcpcafe/blob/main/docs/news/20231212-05.md Converts the effect's start time to its representation in timeline time. ```Objective-C CMTime startTimeOfInputToFilterInTimelineTime = kCMTimeZero; [timingAPI timelineTime:&startTimeOfInputToFilterInTimelineTime fromInputTime:startTimeOfInputToFilter]; ```