- Posts: 1382
- Joined: Tue Jun 02, 2015 7:47 am
- Location: Netherlands
Hi, im having some problems with motion paths, im trying to make a cartoony rollercoaster, really basic 2d stuff. but i just cant find a way to create a smooth looking animation. here's the comp:
my goal is to make the car/train move at a single speed. no accelleration, or braking. it has to be perfect, because i want to attach more cars, and there will grow a gap between the cars if it speeds up.
anyone who can help me?
- Code: Select all
{
Tools = ordered() {
Background10 = Background {
Inputs = {
GlobalOut = Input { Value = 250, },
Width = Input { Value = 657, },
Height = Input { Value = 351, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
TopLeftRed = Input { Value = 0.731, },
TopLeftBlue = Input { Value = 0.106, },
},
ViewInfo = OperatorInfo { Pos = { 10268.7, 808.5 } },
},
Polygon13 = PolylineMask {
DrawMode = "ModifyOnly",
DrawMode2 = "InsertAndModify",
Inputs = {
MaskWidth = Input { Value = 1920, },
MaskHeight = Input { Value = 1080, },
PixelAspect = Input { Value = { 1, 1 }, },
ClippingMode = Input { Value = FuID { "None" }, },
Polyline = Input {
SourceOp = "Polygon13Polyline",
Source = "Value",
},
Polyline2 = Input {
Value = Polyline {
},
Disabled = true,
},
},
ViewInfo = OperatorInfo { Pos = { 10395, 775.5 } },
},
Polygon13Polyline = BezierSpline {
SplineColor = { Red = 173, Green = 255, Blue = 47 },
NameSet = true,
KeyFrames = {
[86] = { 0, Flags = { Linear = true, LockedY = true }, Value = Polyline {
Closed = true,
Points = {
{ Linear = true, X = 0.140315532684326, Y = 0.364302664995193, LX = 0.00993384917577108, LY = -0.0909608900547028, RX = 0.0383807917435964, RY = -0.00165347258249917 },
{ Linear = true, X = 0.255457907915115, Y = 0.359342247247696, LX = -0.0383807917435964, LY = 0.00165347258249917, RX = -0.00722460945447286, RY = -0.0868066549301148 },
{ Linear = true, X = 0.233784079551697, Y = 0.0989222824573517, LX = 0.00722460945447286, LY = 0.0868066549301148, RX = 0.0415809055169423, RY = 0 },
{ Linear = true, X = 0.358526796102524, Y = 0.0989222824573517, LX = -0.0415809055169423, LY = 0, RX = 0.00718533992767334, RY = -0.0934205055236817 },
{ X = 0.380082696676254, Y = -0.181339174509048, LX = 0.00812768936157227, LY = 0.133930251002312, RX = -0.00280946493148804, RY = -0.0462951809167862 },
{ X = 0.3448626101017, Y = -0.305348664522171, LX = 0.0162053108215332, LY = 0.0388571321964264, RX = 0.00677309433619181, RY = -0.0272821088631948 },
{ Linear = true, X = 0.365181893110275, Y = -0.387194991111755, LX = -0.00677309433619181, LY = 0.0272821088631948, RX = -0.236627558867137, RY = 0 },
{ Linear = true, X = -0.344700783491135, Y = -0.387194991111755, LX = 0.236627558867137, LY = 0, RX = 0, RY = 0.218258152405421 },
{ Linear = true, X = -0.344700783491135, Y = 0.267579466104507, LX = 0, LY = -0.218258152405421, RX = 0.0528531571229299, RY = 0 },
{ Linear = true, X = -0.186141312122345, Y = 0.267579466104507, LX = -0.0528531571229299, LY = 0, RX = 0.0139957666397095, RY = -0.0132290720939637 },
{ X = -0.144154012203217, Y = 0.227892190217972, LX = -0.0189646333456039, LY = 0.0496037602424622, RX = 0.0269903540611267, RY = -0.0705958604812622 },
{ X = -0.0831962525844574, Y = -0.00524568557739258, LX = -0.0169837176799774, LY = 0.0812709927558899, RX = 0.000451539953549703, RY = -0.0644849389791489 },
{ Linear = true, X = -0.0818416327238083, Y = -0.198700502514839, LX = -0.000451539953549703, LY = 0.0644849389791489, RX = 0.0546436856190364, RY = 0 },
{ Linear = true, X = 0.0820894241333008, Y = -0.198700502514839, LX = -0.0546436856190364, LY = 0, RX = 0, RY = 0.113274251421293 },
{ Linear = true, X = 0.0820894241333008, Y = 0.141122251749039, LX = 0, LY = -0.113274251421293, RX = 0.012184073527654, RY = 0 },
{ Linear = true, X = 0.118641644716263, Y = 0.141122251749039, LX = -0.012184073527654, LY = 0, RX = 0, RY = -0.0165674189726512 },
{ Linear = true, X = 0.118641644716263, Y = 0.0914199948310852, LX = 0, LY = 0.0165674189726512, RX = 0.0171584784984589, RY = 0 },
{ Linear = true, X = 0.170117080211639, Y = 0.0914199948310852, LX = -0.0171584784984589, LY = 0, RX = -0.00993384917577108, RY = 0.0909608900547028 }
}
} }
}
},
MatteControl9 = MatteControl {
Inputs = {
MultiplyByMask = Input { Value = 1, },
EffectMask = Input {
SourceOp = "Polygon13",
Source = "Mask",
},
Background = Input {
SourceOp = "Background10",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 10433.7, 808.5 } },
},
Ellipse6 = EllipseMask {
Inputs = {
MaskWidth = Input { Value = 1920, },
MaskHeight = Input { Value = 1080, },
PixelAspect = Input { Value = { 1, 1 }, },
ClippingMode = Input { Value = FuID { "None" }, },
Width = Input { Value = 0.419, },
Height = Input { Value = 0.419, },
Angle = Input { Value = -22.825403886401, },
},
ViewInfo = OperatorInfo { Pos = { 10378.7, 1006.5 } },
},
Background10_1 = Background {
Inputs = {
GlobalOut = Input { Value = 250, },
Width = Input { Value = 100, },
Height = Input { Value = 100, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
Type = Input { Value = FuID { "Gradient" }, },
TopLeftRed = Input { Value = 0.683792069880592, },
TopLeftGreen = Input { Value = 0.731, },
TopLeftBlue = Input { Value = 0.67252, },
GradientType = Input { Value = FuID { "Radial" }, },
Start = Input { Value = { 0.500440358886523, 0.482718696092153 }, },
End = Input { Value = { 0.814488282878338, 0.462258489445034 }, },
Gradient = Input {
Value = Gradient {
Colors = {
[0.184563758389262] = { 1, 1, 1, 1 },
[0.852348993288591] = { 0.444444444444444, 0.444444444444444, 0.444444444444444, 1 },
[1] = { 0, 0, 0, 1 }
}
},
},
},
ViewInfo = OperatorInfo { Pos = { 10268.7, 1105.5 } },
},
Transform8 = Transform {
Inputs = {
Size = Input { Value = 0.803, },
Input = Input {
SourceOp = "MatteControl10",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 10488.7, 1105.5 } },
},
MatteControl10 = MatteControl {
Inputs = {
MultiplyByMask = Input { Value = 1, },
EffectMask = Input {
SourceOp = "Ellipse6",
Source = "Mask",
},
Background = Input {
SourceOp = "Background10_1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 10378.7, 1105.5 } },
},
Merge72 = Merge {
Inputs = {
Background = Input {
SourceOp = "Merge71",
Source = "Output",
},
Foreground = Input {
SourceOp = "Transform8",
Source = "Output",
},
Center = Input { Value = { 3.37485635146844, 0.5 }, },
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 10708.7, 1171.5 } },
},
Merge71 = Merge {
Inputs = {
Background = Input {
SourceOp = "Transform8",
Source = "Output",
},
Foreground = Input {
SourceOp = "Transform8",
Source = "Output",
},
Center = Input { Value = { 1.87945349653228, 0.5 }, },
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 10598.7, 1171.5 } },
},
Merge70 = Merge {
Inputs = {
Background = Input {
SourceOp = "MatteControl9",
Source = "Output",
},
Foreground = Input {
SourceOp = "Merge73",
Source = "Output",
},
Center = Input { Value = { 0.189113355780022, 0.0588235294117647 }, },
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 10928.7, 1138.5 } },
},
Merge73 = Merge {
Inputs = {
Background = Input {
SourceOp = "Merge72",
Source = "Output",
},
Foreground = Input {
SourceOp = "Transform8",
Source = "Output",
},
Center = Input { Value = { 4.81003714710253, 0.5 }, },
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 10818.7, 1171.5 } },
},
Background9_2 = Background {
Inputs = {
GlobalOut = Input { Value = 250, },
Width = Input { Value = 2081, },
Height = Input { Value = 422, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
TopLeftAlpha = Input { Value = 0, },
GradientType = Input { Value = FuID { "Reflect" }, },
Start = Input { Value = { 0.363636363636364, 0.689054726368159 }, },
Gradient = Input {
Value = Gradient {
Colors = {
[0] = { 0, 0, 0, 0 },
[0.590604026845638] = { 0.5704, 0.604760442306384, 0.62, 1 },
[0.996644295302013] = { 0.753, 0.73794, 0.749235, 1 }
}
},
},
},
ViewInfo = OperatorInfo { Pos = { 10983.7, 1204.5 } },
},
Transform9 = Transform {
CtrlWZoom = false,
Inputs = {
Center = Input {
SourceOp = "Path3",
Source = "Position",
},
Size = Input { Value = 0.394724749563459, },
Input = Input {
SourceOp = "Merge75",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 11093.7, 1237.5 } },
},
Path3 = PolyPath {
DrawMode = "InsertAndModify",
Inputs = {
Displacement = Input {
SourceOp = "Path3Displacement",
Source = "Value",
},
PolyLine = Input {
Value = Polyline {
Points = {
{ Linear = true, LockY = true, X = -0.532110747082621, Y = -0.528657616892911, RX = 0.0506220792077218, RY = 0.0307297289515581 },
{ LockY = true, X = -0.431462585816366, Y = -0.250735118850891, LX = -0.0298865253539417, LY = -0.117708504403188, RX = 0.08189175756474, RY = 0.315555490604537 },
{ LockY = true, X = -0.184992224174239, Y = -0.225275654028189, LX = -0.0694085322067332, LY = -0.013638520739882, RX = 0.0281579158735543, RY = -0.00844043367930092 },
{ X = -0.118145290674238, Y = -0.167021205199176, LX = -0.0174863878659429, LY = -0.0451991419451823, RX = 0.0301529204034943, RY = 0.077939819156957 },
{ LockY = true, X = -0.041347362204172, Y = 0.14990854874222, LX = -0.0295667638158061, LY = -0.0854995324409278, RX = 0.0196396691776323, RY = 0.0660018184411643 },
{ LockY = true, X = 0.0587324838839807, Y = 0.246267910383714, LX = -0.0511828559532792, LY = 0.0451933586047427, RX = 0.0840534232622805, RY = -0.0796742017009852 },
{ LockY = true, X = 0.295026074414798, Y = -0.220982968309171, LX = -0.12104727017265, LY = -0.116799445048963, RX = 0.0268406927069304, RY = 0.0193390031261175 },
{ X = 0.384607934414976, Y = -0.227719433006199, LX = -0.0319563529443387, LY = 0.0381087879582207, RX = 0.0503617811865841, RY = -0.0600577383613527 },
{ LockY = true, X = 0.531570884427214, Y = -0.460177420669768, LX = -0.0556200078466448, LY = -0.0281730496462278 }
}
},
},
},
},
Path3Displacement = BezierSpline {
SplineColor = { Red = 255, Green = 0, Blue = 255 },
NameSet = true,
KeyFrames = {
[0] = { 0, RH = { 4, 0 }, Flags = { LockedY = true } },
[12] = { 0.133625894735683, LH = { 8.00040006637573, 0.100802479114224 }, RH = { 18.6659295739483, 0.188331010382289 }, Flags = { LockedY = true } },
[32] = { 0.303646964233612, LH = { 25.3341144149717, 0.243821369139728 }, RH = { 38.6659998893738, 0.363473585196513 }, Flags = { LockedY = true } },
[52] = { 0.492621526033368, LH = { 45.3340001106262, 0.42952252111527 }, RH = { 56.3327799963797, 0.533634743980822 }, Flags = { LockedY = true } },
[65] = { 0.568689293520645, LH = { 60.6671623593335, 0.534300913253522 }, RH = { 72.9991998672485, 0.63217644667078 }, Flags = { LockedY = true } },
[89] = { 0.825962419692375, LH = { 81.0008001327515, 0.768460077258833 }, RH = { 100.998678880155, 0.912215064102686 }, Flags = { LockedY = true } },
[125] = { 1, LH = { 113.001200199127, 1 }, RH = { 133, 1 }, Flags = { LockedY = true } },
[149] = { 1, LH = { 141, 1 }, Flags = { Linear = true, Extrapolate = true } }
}
},
Merge75 = Merge {
Inputs = {
Background = Input {
SourceOp = "Background9_2",
Source = "Output",
},
Foreground = Input {
SourceOp = "Merge70",
Source = "Output",
},
Center = Input { Value = { 0.5, 0.770650456802115 }, },
Size = Input { Value = 0.581, },
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 11093.7, 1204.5 } },
}
}
}
my goal is to make the car/train move at a single speed. no accelleration, or braking. it has to be perfect, because i want to attach more cars, and there will grow a gap between the cars if it speeds up.
anyone who can help me?