Advertisement
marcusa3000

Time Stretcher Current frame button

Jul 3rd, 2024
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.33 KB | None | 0 0
  1. {
  2.     Tools = ordered() {
  3.         TimeStretcher = TimeStretcher {
  4.             CtrlWZoom = false,
  5.             Inputs = {
  6.                 SourceTime = Input { Value = 1, },
  7.                 InterpolateBetweenFrames = Input { Value = 0, },
  8.                 SampleSpread = Input { Disabled = true, },
  9.                 CommentsNest = Input { Value = 0, },
  10.                 FrameRenderScriptNest = Input { Value = 0, },
  11.                 CurrentFrame = Input {
  12.                     Value = 40,
  13.                     Expression = "time",
  14.                 }
  15.             },
  16.             ViewInfo = OperatorInfo { Pos = { -1375, 709.5 } },
  17.             UserControls = ordered() {
  18.                 SetSourceTime = {
  19.                     INP_MaxAllowed = 1000000,
  20.                     INP_Integer = false,
  21.                     INPID_InputControl = "ButtonControl",
  22.                     BTNCS_Execute = "tool.SourceTime = tool.CurrentFrame[CurrentTime]",
  23.                     INP_MaxScale = 1,
  24.                     INP_MinScale = 0,
  25.                     INP_MinAllowed = -1000000,
  26.                     LINKID_DataType = "Number",
  27.                     ICS_ControlPage = "Controls",
  28.                     LINKS_Name = "Set Source Time to Current Frame"
  29.                 },
  30.                 IndependentLabel = {
  31.                     INP_External = false,
  32.                     INPID_InputControl = "LabelControl",
  33.                     INP_Passive = true,
  34.                     ICS_ControlPage = "Controls",
  35.                     LINKS_Name = "Button doesn't work on Keyframes",
  36.                 },
  37.                 CurrentFrame = {
  38.                     INPID_InputControl = "ScrewControl",
  39.                     INP_Integer = false,
  40.                     LINKID_DataType = "Number",
  41.                     LINKS_Name = "Current Frame",
  42.                 }
  43.             }
  44.         }
  45.     },
  46.     ActiveTool = "TimeStretcher"
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement