Skip to content

Instantly share code, notes, and snippets.

@aiokr
Created June 22, 2023 03:33
Show Gist options
  • Save aiokr/5064f8c8b35c8610905189a5be576099 to your computer and use it in GitHub Desktop.
Save aiokr/5064f8c8b35c8610905189a5be576099 to your computer and use it in GitHub Desktop.
KeyframeStretcher 节点用法
{
Tools = ordered() {
MediaOut1 = MediaOut {
CtrlWZoom = false,
Inputs = {
Index = Input { Value = "0", },
Input = Input {
SourceOp = "Merge2",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 715, 181.5 } },
},
KeyframeStretcher1 = KeyStretcher {
Inputs = {
Keyframes = Input {
SourceOp = "Text1",
Source = "Output",
},
SourceEnd = Input { Value = 110, },
StretchStart = Input { Value = 20, },
StretchEnd = Input { Value = 90, },
},
ViewInfo = OperatorInfo { Pos = { 550, 148.5 } },
},
Merge2 = Merge {
Inputs = {
Background = Input {
SourceOp = "Merge1_1",
Source = "Output",
},
Foreground = Input {
SourceOp = "KeyframeStretcher1",
Source = "Result",
},
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 550, 181.5 } },
},
KeyframeStretcher1_1_1 = KeyStretcher {
Inputs = {
Keyframes = Input {
SourceOp = "Background2_1",
Source = "Output",
},
SourceEnd = Input { Value = 110, },
StretchStart = Input { Value = 20, },
StretchEnd = Input { Value = 90, },
},
ViewInfo = OperatorInfo { Pos = { 440, 148.5 } },
},
Background2_1 = Background {
Inputs = {
EffectMask = Input {
SourceOp = "SubRectangle",
Source = "Mask",
},
GlobalOut = Input { Value = 130, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
TopLeftRed = Input { Value = 0.443137254901961, },
TopLeftGreen = Input { Value = 0.686274509803922, },
TopLeftBlue = Input { Value = 0.866666666666667, },
},
ViewInfo = OperatorInfo { Pos = { 440, 115.5 } },
},
Merge1_1 = Merge {
Inputs = {
Background = Input {
SourceOp = "Merge3",
Source = "Output",
},
Foreground = Input {
SourceOp = "KeyframeStretcher1_1_1",
Source = "Result",
},
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 440, 181.5 } },
},
KeyframeStretcher1_1_2 = KeyStretcher {
Inputs = {
Keyframes = Input {
SourceOp = "Background2_2",
Source = "Output",
},
SourceEnd = Input { Value = 110, },
StretchStart = Input { Value = 20, },
StretchEnd = Input { Value = 90, },
},
ViewInfo = OperatorInfo { Pos = { 330, 148.5 } },
},
Merge3 = Merge {
Inputs = {
Background = Input {
SourceOp = "KeyframeStretcher1_1_2",
Source = "Result",
},
Foreground = Input {
SourceOp = "Merge1",
Source = "Output",
},
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 330, 181.5 } },
},
Background2_2 = Background {
Inputs = {
EffectMask = Input {
SourceOp = "MainShadow",
Source = "Mask",
},
GlobalOut = Input { Value = 130, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
TopLeftRed = Input { Value = 0.133333333333333, },
TopLeftGreen = Input { Value = 0.156862745098039, },
TopLeftBlue = Input { Value = 0.192156862745098, },
},
ViewInfo = OperatorInfo { Pos = { 330, 115.5 } },
},
Text1 = TextPlus {
Inputs = {
MotionBlur = Input { Value = 1, },
GlobalOut = Input { Value = 130, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
Center = Input {
SourceOp = "Path1",
Source = "Position",
},
LayoutRotation = Input { Value = 1, },
TransformRotation = Input { Value = 1, },
Softness1 = Input { Value = 1, },
StyledText = Input { Value = "小节标题", },
Font = Input { Value = "Smiley Sans", },
Style = Input { Value = "Oblique", },
Size = Input { Value = 0.04, },
VerticalJustificationNew = Input { Value = 3, },
HorizontalLeftCenterRight = Input { Value = -1, },
HorizontalJustificationNew = Input { Value = 3, },
Start = Input {
SourceOp = "Text1WriteOnStart",
Source = "Value",
},
End = Input {
SourceOp = "Text1WriteOnEnd",
Source = "Value",
},
},
ViewInfo = OperatorInfo { Pos = { 550, 82.5 } },
UserControls = ordered() { NewControl = { TEC_ReadOnly = false, LINKID_DataType = "Text", LINKS_Name = "新的控制", INPID_InputControl = "TextEditControl", ICS_ControlPage = "Text", TEC_Wrap = false, } }
},
Path1 = PolyPath {
DrawMode = "InsertAndModify",
CtrlWZoom = false,
Inputs = {
Displacement = Input {
SourceOp = "Path1位移",
Source = "Value",
},
PolyLine = Input {
Value = Polyline {
Points = {
{ Linear = true, LockY = true, X = -0.639, Y = -0.32, RX = 0.0796666666666667, RY = 0 },
{ Linear = true, LockY = true, X = -0.4, Y = -0.32, LX = -0.0796666666666667, LY = 0, RX = 0, RY = 0 },
{ Linear = true, LockY = true, X = -0.4, Y = -0.32, LX = 0, LY = 0 }
}
},
},
},
},
["Path1位移"] = BezierSpline {
SplineColor = { Red = 74, Green = 233, Blue = 128 },
CtrlWZoom = false,
KeyFrames = {
[0] = { 0, RH = { 6.66666666666667, 0 }, Flags = { LockedY = true } },
[20] = { 1, LH = { 13.3339999489002, 0.888899999148337 }, RH = { 43.3277604370884, 1.38879600728481 }, Flags = { LockedY = true } },
[90] = { 1, LH = { 67.6, 1.51 }, RH = { 96.9731462934314, 0.841236401354908 }, Flags = { LockedY = true } },
[113] = { 0, LH = { 105.333333333333, 0 } }
}
},
Text1WriteOnStart = BezierSpline {
SplineColor = { Red = 249, Green = 211, Blue = 150 },
CtrlWZoom = false,
KeyFrames = {
[0] = { 0, RH = { 6.66666666666667, 0 }, Flags = { Linear = true } },
[20] = { 0, LH = { 13.3333333333333, 0 }, RH = { 43.3333333333333, 0 }, Flags = { Linear = true } },
[90] = { 0, LH = { 66.6666666666667, 0 }, RH = { 97.6666666666667, 0 }, Flags = { Linear = true } },
[113] = { 0, LH = { 105.333333333333, 0 }, Flags = { Linear = true } }
}
},
Text1WriteOnEnd = BezierSpline {
SplineColor = { Red = 218, Green = 249, Blue = 145 },
CtrlWZoom = false,
KeyFrames = {
[0] = { 0, RH = { 6.66666666666667, 0 } },
[20] = { 1, LH = { 13.3339999489002, 0.888899999148337 }, RH = { 43.3277604370884, 1.38879600728481 } },
[90] = { 1, LH = { 66.6748510491104, 1.52243487511234 }, RH = { 97.6658996534158, 0.828299774784364 } },
[113] = { 0, LH = { 105.333333333333, 0 } }
}
},
Background2 = Background {
Inputs = {
EffectMask = Input {
SourceOp = "MainRectangle",
Source = "Mask",
},
GlobalOut = Input { Value = 130, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
TopLeftRed = Input { Value = 0.443137254901961, },
TopLeftGreen = Input { Value = 0.686274509803922, },
TopLeftBlue = Input { Value = 0.866666666666667, },
},
ViewInfo = OperatorInfo { Pos = { 220, 115.5 } },
},
Merge1 = Merge {
Inputs = {
Background = Input {
SourceOp = "Background1",
Source = "Output",
},
Foreground = Input {
SourceOp = "KeyframeStretcher1_1",
Source = "Result",
},
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 220, 181.5 } },
},
KeyframeStretcher1_1 = KeyStretcher {
Inputs = {
Keyframes = Input {
SourceOp = "Background2",
Source = "Output",
},
SourceEnd = Input { Value = 110, },
StretchStart = Input { Value = 20, },
StretchEnd = Input { Value = 90, },
},
ViewInfo = OperatorInfo { Pos = { 220, 148.5 } },
},
SubRectangle = RectangleMask {
NameSet = true,
Inputs = {
MotionBlur = Input { Value = 1, },
Filter = Input { Value = FuID { "Fast Gaussian" }, },
JoinStyle = Input { Value = 1, },
WritePosition = Input { Value = 0.835, },
MaskWidth = Input { Value = 1920, },
MaskHeight = Input { Value = 1080, },
PixelAspect = Input { Value = { 1, 1 }, },
UseFrameFormatSettings = Input { Value = 1, },
ClippingMode = Input { Value = FuID { "None" }, },
Center = Input {
SourceOp = "Path2_1",
Source = "Position",
},
Width = Input { Value = 0.016, },
Height = Input { Value = 0.11, },
CornerRadius = Input { Value = 0.1, },
},
ViewInfo = OperatorInfo { Pos = { 440, 82.5 } },
},
Path2_1 = PolyPath {
DrawMode = "InsertAndModify",
CtrlWZoom = false,
Inputs = {
Displacement = Input {
SourceOp = "Path2_1位移",
Source = "Value",
},
PolyLine = Input {
Value = Polyline {
Points = {
{ Linear = true, LockY = true, X = -0.719, Y = -0.32, RX = 0.223, RY = 7.40148683083438e-17 },
{ Linear = true, LockY = true, X = -0.05, Y = -0.32, LX = -0.223, LY = -7.40148683083438e-17, RX = 0, RY = -5.55111512312578e-17 },
{ Linear = true, LockY = true, X = -0.05, Y = -0.32, LX = 0, LY = 5.55111512312578e-17 }
}
},
},
},
},
["Path2_1位移"] = BezierSpline {
SplineColor = { Red = 47, Green = 147, Blue = 250 },
CtrlWZoom = false,
KeyFrames = {
[0] = { 0, RH = { 6.66666666666667, 0 }, Flags = { LockedY = true } },
[20] = { 1, LH = { 13.3340000766773, 0.88891031946568 }, RH = { 43.3277605915462, 1.38875990121588 }, Flags = { LockedY = true } },
[90] = { 1, LH = { 66.6748496725678, 1.52242132492617 }, RH = { 97.6659000059011, 0.82830423034297 }, Flags = { LockedY = true } },
[113] = { 0, LH = { 105.333333333333, 0 } }
}
},
MainShadow = RectangleMask {
NameSet = true,
Inputs = {
MotionBlur = Input { Value = 1, },
Filter = Input { Value = FuID { "Fast Gaussian" }, },
SoftEdge = Input { Value = 0.0472, },
BorderWidth = Input { Value = -0.022, },
JoinStyle = Input { Value = 1, },
WritePosition = Input { Value = 0.835, },
MaskWidth = Input { Value = 1920, },
MaskHeight = Input { Value = 1080, },
PixelAspect = Input { Value = { 1, 1 }, },
UseFrameFormatSettings = Input { Value = 1, },
ClippingMode = Input { Value = FuID { "None" }, },
Center = Input {
SourceOp = "Path2_2",
Source = "Position",
},
Width = Input { Value = 0.331, },
Height = Input { Value = 0.11, },
CornerRadius = Input { Value = 0.1, },
},
ViewInfo = OperatorInfo { Pos = { 330, 82.5 } },
},
Path2_2 = PolyPath {
DrawMode = "InsertAndModify",
CtrlWZoom = false,
Inputs = {
Displacement = Input {
SourceOp = "Path2_2位移",
Source = "Value",
},
PolyLine = Input {
Value = Polyline {
Points = {
{ Linear = true, LockY = true, X = -0.719, Y = -0.32, RX = 0.153, RY = 0 },
{ Linear = true, LockY = true, X = -0.26, Y = -0.32, LX = -0.153, LY = 0, RX = 0, RY = 0 },
{ Linear = true, LockY = true, X = -0.26, Y = -0.32, LX = 0, LY = 0 }
}
},
},
},
},
["Path2_2位移"] = BezierSpline {
SplineColor = { Red = 47, Green = 147, Blue = 250 },
CtrlWZoom = false,
KeyFrames = {
[0] = { 0, RH = { 6.66666666666667, 0 }, Flags = { LockedY = true } },
[20] = { 1, LH = { 13.3340000850208, 0.88274898888159 }, RH = { 43.3273913813232, 1.41031507067212 }, Flags = { LockedY = true } },
[90] = { 1, LH = { 66.6722395629116, 1.38879600728481 }, RH = { 97.6659000587648, 0.872234999020587 }, Flags = { LockedY = true } },
[113] = { 0, LH = { 105.333333333333, 0 } }
}
},
MainRectangle = RectangleMask {
NameSet = true,
Inputs = {
MotionBlur = Input { Value = 1, },
Filter = Input { Value = FuID { "Fast Gaussian" }, },
JoinStyle = Input { Value = 1, },
WritePosition = Input { Value = 0.835, },
MaskWidth = Input { Value = 1920, },
MaskHeight = Input { Value = 1080, },
PixelAspect = Input { Value = { 1, 1 }, },
UseFrameFormatSettings = Input { Value = 1, },
ClippingMode = Input { Value = FuID { "None" }, },
Center = Input {
SourceOp = "Path2",
Source = "Position",
},
Width = Input { Value = 0.331, },
Height = Input { Value = 0.11, },
CornerRadius = Input { Value = 0.1, },
},
ViewInfo = OperatorInfo { Pos = { 220, 82.5 } },
},
Path2 = PolyPath {
DrawMode = "InsertAndModify",
CtrlWZoom = false,
Inputs = {
Displacement = Input {
SourceOp = "Path2位移",
Source = "Value",
},
PolyLine = Input {
Value = Polyline {
Points = {
{ Linear = true, LockY = true, X = -0.719, Y = -0.32, RX = 0.153, RY = 0 },
{ Linear = true, LockY = true, X = -0.26, Y = -0.32, LX = -0.153, LY = 0, RX = 0, RY = 0 },
{ Linear = true, LockY = true, X = -0.26, Y = -0.32, LX = 0, LY = 0 }
}
},
},
},
},
["Path2位移"] = BezierSpline {
SplineColor = { Red = 47, Green = 147, Blue = 250 },
CtrlWZoom = false,
KeyFrames = {
[0] = { 0, RH = { 6.66666666666667, 0 }, Flags = { LockedY = true } },
[20] = { 1, LH = { 13.3340000850208, 0.88274898888159 }, RH = { 43.3273913813232, 1.41031507067212 }, Flags = { LockedY = true } },
[90] = { 1, LH = { 66.6722395629116, 1.38879600728481 }, RH = { 97.6659000587648, 0.872234999020587 }, Flags = { LockedY = true } },
[113] = { 0, LH = { 105.333333333333, 0 } }
}
},
Background1 = Background {
Inputs = {
GlobalOut = Input { Value = 130, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
TopLeftAlpha = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 110, 181.5 } },
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment