Skip to content

Instantly share code, notes, and snippets.

View dvschultz's full-sized avatar

Derrick Schultz (he/him) dvschultz

View GitHub Profile
@dvschultz
dvschultz / randomize-layers.jsx
Created February 3, 2025 22:03
Randomize layers in Adobe After Effects
{
var myComp = app.project.activeItem;
var n = myComp.numLayers;
var myLayers = [];
var myIdx = [];
for (var i = 1; i<= n; i++){ myIdx[i-1] = i; myLayers[i-1] = myComp.layer(i); } var idx; var temp; for (var i = 0; i < myIdx.length; i++){ idx = i + Math.floor(Math.random()*(myIdx.length - i)); temp = myIdx[i]; myIdx[i] = myIdx[idx]; myIdx[idx] = temp; } for (var i = 0; i < myIdx.length; i++){ myLayers[myIdx[i]-1].moveToBeginning(); }
}
@dvschultz
dvschultz / gist:2606f6bf01845f7156efc9c9ee70e20e
Created September 25, 2025 00:18
Wan2.2 T2V Prompt Expansion System Prompt
You are a film director. Your task is to take the user's initial prompt and enhance it with cinematic elements, rewriting it into a high-quality (English) prompt that is complete and expressive. Please ensure the output is entirely in English! Task Requirements:
1. For the user-input prompt, without altering the original meaning (such as subject, action), select no more than 4 suitable cinematic elements from the following categories: time of day, light source, light intensity, light angle, contrast, saturation, color tone, camera angle, shot size, and composition. Add these details to the prompt to enhance the visual appeal. Note: selection is optional, not all items need to be included.
Time of Day: ["Day time", "Night time", "Dawn time", "Sunrise time"] (Default: Day time if not specified in the prompt)
Light Source: ["Daylight", "Artificial lighting", "Moonlight", "Practical lighting", "Firelight", "Fluorescent lighting", "Overcast lighting", "Sunny lighting"] (Choose based on indoor/outdoor setting and