This file contains hidden or 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
| /* | |
| After Effects JSX Script | |
| Offset markers V2 | |
| Author: G.Breant + Claude | |
| */ | |
| (function offsetMarkers() { | |
| var comp = app.project.activeItem; | |
| if (!comp || !(comp instanceof CompItem)) { | |
| alert("Open a composition first."); | |
| return; |
This file contains hidden or 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
| /* | |
| After Effects JSX Script | |
| Creates render queue jobs from active comp markers (when they have a duration) | |
| Author: G.Breant | |
| */ | |
| (function () { | |
| var SKIP_IF_EXISTS = true; | |
| app.beginUndoGroup("Create Render Jobs From Comp Markers"); | |
| var comp = app.project.activeItem; | |
| if (!(comp && comp instanceof CompItem)) { |
This file contains hidden or 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
| // ================================ | |
| // Export AE markers to FFmpeg chapters (UTF-8 safe, FFmpeg compatible) | |
| // Usage: ffmpeg -i input.mp4 -i chapters.txt -map_metadata 1 -c copy output.mkv | |
| // ================================ | |
| { | |
| // Check active comp | |
| var comp = app.project.activeItem; | |
| if (!(comp instanceof CompItem)) { | |
| alert("Select a comp that has markers."); | |
| } else { |
This file contains hidden or 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 bpy | |
| obj = bpy.context.active_object | |
| obj.data.materials.clear() |
This file contains hidden or 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
| //given an entity ID (not documentId), | |
| //return the full chain of items for a relation field (manyToOne). | |
| //NB: getRelationChainIds() uses a single DB request to retrieve the chain of IDs. | |
| //How to use ? | |
| //const chainItems = await getRelationChain(strapi,itemId,'api::category.category','parent'); | |
| //will return the whole hierarchy of items (as a flat ordered array) from the 'parent' field, for categories. | |
| import _ from 'lodash'; |
This file contains hidden or 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
| // | |
| https://github.com/metabrainz/listenbrainz-server/blob/cdc4df46738402d7d003acf08febfe7c7cf2fe4f/frontend/js/src/utils/types.d.ts | |
| export type URI = string; | |
| export type URICollection = URI[]; | |
| export type JSPFAttribution = Record<string,URI>; | |
| export type JSPFAttributionCollection = JSPFAttribution[]; | |
| export type JSPFLink = Record<URI,URI>; |
This file contains hidden or 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
| {"properties":{"selectors":{"properties":{"track":{"properties":{"artist":{"properties":{"path":"artist"}},"title":{"properties":{"path":"title"}},"album":{"properties":{"path":"album"}},"image":{"properties":{"path":"cover"}}}}}}},"station_slug":"radio17bis"} |
This file contains hidden or 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
| Hi, i've got problems validating parameters sent to my API route. | |
| puts "PARAMS" | |
| puts params.to_json | |
| =begin | |
| { | |
| "url":"http://www.last.fm/user/grosbouff/loved", | |
| "options":{ | |
| "selectors":{ | |
| "playlist":{ |
This file contains hidden or 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
| var rot = transform.xRotation; | |
| var flipAngle = 180; | |
| var flips = Math.round(rot / flipAngle); | |
| var isFront = (flips%2) ? false : true; |
This file contains hidden or 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
| """ | |
| nthObjectSelector by gordielachance | |
| This will reduce your current selection of object to nth objects. | |
| https://gist.github.com/gordielachance/ba32a3087f8d327bfdeb9d0ea7fb4935 | |
| """ | |
| import bpy | |
| #SETUP | |
| nth = 3 #Specify your nth value here ! |
NewerOlder