Adobe after effects scratchpad

after effects
Random note collection on using adobe after effects

Matt Crump


February 24, 2024

from diffusers import DiffusionPipeline
from transformers import set_seed
from PIL import Image
import torch
import random
import ssl
import os
ssl._create_default_https_context = ssl._create_unverified_context

#locate library
#model_id = "./stable-diffusion-v1-5"
model_id = "dreamshaper-xl-turbo"

pipeline = DiffusionPipeline.from_pretrained(
    pretrained_model_name_or_path = "../../../../bigFiles/huggingface/dreamshaper-xl-turbo/"

pipeline ="mps")

# Recommended if your computer has < 64 GB of RAM

prompt = "Space station universe situation. Synthesizer universe. Neon. 80s Cartoon. Thundercats. Command station."

for s in range(30):
  for n in [5,10]:
    seed = s+21
    num_steps = n+1
    image = pipeline(prompt,height = 1080,width = 1080,num_images_per_prompt = 1,num_inference_steps=num_steps)
    image_name = "images/synth_{}_{}.jpeg"
    image_save = image.images[0].save(image_name.format(seed,num_steps))

Adobe after effects logo

Making random notes about adobe after effects.

Perhaps a small collection of formula expressions may emerge here over time.

Sine wave formula

a = amplitude (multiplier of -1 to 1) f = frequency (1/30 would do one cycle in a 30 sec comp) y = value of sine wave over time

value of some effect to assign

a = 617;
f = 1/30;
y = Math.sin(time*2*Math.PI*f)*a;

effect("Transform")("Skew Axis").value = y;