Advanced Search
Search Results
70 total results found
Looping
Loop moving points on curve using CurveU: int loop_frames = chi("loop_frame"); float fps = 29.97; float loop_time = loop_frames / fps; float t = @Time / loop_time; t -= floor(t); float ping = abs(2 * t - 1); float speed_mult = chf("speed_mult"); ...
TOPS mplay python
import subprocess import os def onGenerate(work_item): # Get the parent graph parent = work_item.parentItemHolder # Collect output file paths from upstream items all_inputs = parent.inputItems file_paths = [] for item in a...
Transition Crowd Based On Clip Name
string clips[] = point(0, "clipnames", @ptnum); string target_clips[] = { "sit_idle_002", "n_sit_veryidle_002", "talking05", "talking04", "talking02", "n_sit_idle_phone_01" }; foreach (string clip; clips) { if (find(target_clips, clip) >= 0) { ...
For Website Looping Video
ffmpeg -ss 10 -i $INPUT -t 5 -'min(350,ih)':force_original_aspect_ratio=decrease,pad=550:350:(550-iw)/2:(350-ih)/2" -c:v libx264 -an -preset veryfast -crf 28 output.mp4
Tidal-dl-ng Shell
nix-shell tidal.nix (or whatever you call this file) { pkgs ? import <nixpkgs> {} }: let pythonEnv = pkgs.python3.withPackages (ps: with ps; [ pip ]); in pkgs.mkShell { name = "tidal-dl-ng-shell"; buildInputs = [ pythonEnv pk...
Take Screenshot of Remote Machine
nix-shell -p xorg.xwd imagemagick --run 'sudo DISPLAY=:0 XAUTHORITY=/run/lightdm/root/:0 xwd -root -silent | magick xwd:- /tmp/screen.png'
Relative Bounding Box
vector uvw = relbbox(0, @P); float r = chramp("ramp", uvw.x); @Cd = r;
Cull by Camera
string camera = chs("camera"); vector campos = toNDC(camera,@P); if (campos.x<(0-ch("x_pad"))|| campos.x>1+ch("x_pad") || campos.y<0-ch("y_pad") || campos.y>1+ch("y_pad") || campos.z>0){@group_blast = 1; f@blast=1;}
Pop Birth Attribute
Here’s its existing code: #include <voptype.h> #include <voplib.h> int npts = ch("npts"); int seed = ch("seed"); float frame = ch("frame"); int firstpointcount = ch("firstpointcount"); int firstprimcount = ch("firstprimcount"); for(int i = 0; ...
Move Wheel on Ground by Curve
First vex is the anim by curve - move along curveu: f@pos = chf("curveu"); float u = @pos; int prim = 0; vector pcurve = primuv(1, "P", 0, set(u,0, 0)); @P.z = pcurve.z; Then the rototion vex: float pi = 3.14159; float curve_length = prim(1, "pe...