Python binding de BlackMagic, utile pour traiter une IHM hors fusion ou passer par un Terminal.
- Fusion 7
import PeyeonScript as eyeon
fusion = eyeon.scriptapp("Fusion")
print fusion| import itertools | |
| def iter_viewers(comp): | |
| """Iterate GLPreview views for Composition. | |
| It prefers the active view first, then yields views | |
| from the current frame (active window), then from the comp, | |
| then from floating views last. | |
| (function getSelectedLayerType() { | |
| /** | |
| * Gets the type of a given layer | |
| * | |
| * @param {Layer} layer Layer to check | |
| * @return {string} Layer type | |
| */ | |
| function getLayerType(layer) { | |
| switch (layer.matchName) { | |
| case "ADBE Vector Layer": |
| function getTemplatePath () { | |
| if (parseFloat(app.version) < 14.0) return; | |
| try { | |
| if (app.preferences.havePref("Template Project", "Location", PREFType.PREF_Type_MACHINE_INDEPENDENT)) { | |
| return app.preferences.getPrefAsString("Template Project", "Location", PREFType.PREF_Type_MACHINE_INDEPENDENT); | |
| } else { | |
| throw new Error("Template Project Location preference does not exist."); | |
| } | |
| } catch(e) { |
| (function () { | |
| /** | |
| * Gets currently open comp from timeline, as opposed to | |
| * selected comp in project panel | |
| * | |
| * @returns {CompItem | null} Active comp, or null if none | |
| */ | |
| function getFocusedComp() { | |
| var activeItem = app.project.activeItem; |
| (function () { | |
| var allEnums = { | |
| AlphaMode: {}, | |
| AutoOrientType: {}, | |
| BlendingMode: {}, | |
| ChannelType: {}, | |
| CloseOptions: {}, | |
| FastPreviewType: {}, | |
| FeetFramesFilmType: {}, | |
| FieldSeparationType: {}, |
| CACHE_INFO: 127.0.0.1 | |
| CF_CONNECTING_IP: 127.0.0.1 | |
| CF-Connecting-IP: 127.0.0.1 | |
| CLIENT_IP: 127.0.0.1 | |
| Client-IP: 127.0.0.1 | |
| COMING_FROM: 127.0.0.1 | |
| CONNECT_VIA_IP: 127.0.0.1 | |
| FORWARD_FOR: 127.0.0.1 | |
| FORWARD-FOR: 127.0.0.1 | |
| FORWARDED_FOR_IP: 127.0.0.1 |
| Last Updated: 7 Oct 2025 | |
| ------------------------- | |
| In this package, you will find a brief introduction to the Scripting API for DaVinci Resolve Studio. Apart from this README.txt file, this package contains folders containing the basic import | |
| modules for scripting access (DaVinciResolve.py) and some representative examples. | |
| From v16.2.0 onwards, the nodeIndex parameters accepted by SetLUT() and SetCDL() are 1-based instead of 0-based, i.e. 1 <= nodeIndex <= total number of nodes. | |
| Overview | |
| -------- | |
| As with Blackmagic Fusion scripts, user scripts written in Lua and Python programming languages are supported. By default, scripts can be invoked from the Console window in the Fusion page, |