Prev Previous Post   Next Post Next
Old 10-20-2020, 11:16 AM   #1
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 402
Default Foley record assistant



Code:
// Record Assistant
//@param 1:w "WIDTH" 20 20 80 50 5
//@param 2:wait "PRE-ROLL" 10 3 20 11.5 1
//@param 4:state "STATE" 1 0 1 .5 1
//@gmem=target_point
input=0;
gfx_blit(input);

start=project_w/2-w/2;
time_now=project_time;
tar=gmem[1];

tar>0 && state==1 ? (
  gfx_set(0, 1, 0, 1);
  gfx_fillrect(start, 0, w, project_h);
  tar-time_now<=wait && tar-time_now>=0 ? (
    gfx_set(1, 1, 1, 1);
    gfx_fillrect(start-start*(tar-time_now)/wait, 0, w, project_h);
  );
);
How to use:

1 Insert video processor to the track which contains video items

2 Copy and paste the code I wrote in the video processor and press ctrl/command + s

3 Locate edit cursor to the target position, and run "DSY_save cursor.lua". Then you will see a green line in the video window.

4 Play your project. When play cursor is very close(less than 10 seconds by default) to the target position you set before, a white line will show and move to the green line, according to the distance between play cursor and target position.

PS: You can set the width of the lines with the WIDTH knob, and how close between play cursor and target position to trigger the white line with the PRE-ROLL knob. And STATE knob can temporarily disable this plugin.
Attached Files
File Type: lua DSY_save cursor.lua (84 Bytes, 161 views)

Last edited by dsyrock; 10-20-2020 at 11:33 AM.
dsyrock is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.