This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import secrets | |
from pathlib import Path | |
def hex_to_argb(hex_string: str) -> tuple[int, int, int, int]: | |
"""Convert hexidecimal color information in ARGB order to tuple of binary values.""" | |
_hex = int(hex_string, 16) | |
a = _hex >> 24 & 0xFF | |
r = _hex >> 16 & 0xFF | |
g = _hex >> 8 & 0xFF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import uuid | |
from dataclasses import dataclass | |
from dataclasses import field | |
from time import sleep | |
from fastapi import Request | |
@dataclass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Example of using a QProgressDialog with the render class in Harmony. | |
*/ | |
function renderDialogExample() { | |
/** | |
* Create the progress dialog | |
* @param {int} frames - Number of frames to use as the maximum value | |
* @returns {QProgressDialog} progressUI - The created QProgressDialog | |
*/ | |
function createUI(frames) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Enable or Disable a webcam. | |
.DESCRIPTION | |
Toggle the Status of a Webcam by disabling the PnPDevice. Useful for completely disabling an unneeded device | |
without physically disconnecting it. | |
Can also be used to output the current status of the provided webcam. | |
Webcam name is sourced from the -WebcamName parameter, trying the WEBCAM_NAME env var if no parameter used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Set the drawing art layers to Bitmap for all selected read nodes. | |
*/ | |
scene.beginUndoRedoAccum("Set Layers to Bitmap"); | |
var readNodes = selection.selectedNodes().filter(function(selNode) { | |
return node.type(selNode) === "READ"; | |
} | |
) | |
readNodes.forEach(function(n) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scene.beginUndoRedoAccum("Set Video on 2s"); | |
var col = node.linkedColumn(selection.selectedNode(0), "drawing.element"); | |
var keys = column.getDrawingTimings(col); | |
keys.forEach(function(key) { | |
if (parseInt(key) % 2 === 0) { | |
column.setEntry(col, 1, parseInt(key), parseInt(key) - 1); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moved, see: https://github.com/bob-ross27/toonboom/blob/main/scripts/renameDrawingsByFrame.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Example QTProgressBar. | |
*/ | |
function progressbar() { | |
/** | |
* Sleep for a duration. | |
* @param {*} sleepDuration | |
*/ | |
this.sleepFor = function (sleepDuration) { | |
var now = new Date().getTime(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moved, see: https://github.com/bob-ross27/toonboom/blob/main/scripts/mergeDuplicateTimings.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --------------------------------------------------------------------------------- | |
* NC_Find_And_Replace.js | |
* | |
* Jason Schleifer / 26 October 2018 | |
* Latest Revision: v2.0 - 25 Nov 2018, 10:04 AM | |
* License: GPL v3 | |
* | |
* Description: | |
* ----------- | |
* Finds and replaces text in the selected nodes. |