

Code: Select all
{
Tools = ordered() {
Text1 = TextPlus {
CtrlWZoom = false,
Inputs = {
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
Center = Input { Value = { 0.316326530612245, 0.605545724871171 }, },
Font = Input { Value = "Open Sans", },
StyledText = Input { Value = "HELLO", },
Style = Input { Value = "Bold", },
ManualFontKerningPlacement = Input {
Value = StyledText {
Array = {
},
Value = ""
},
},
},
ViewInfo = OperatorInfo { Pos = { 0, 412.5 } },
},
Transform2_4 = Transform {
Inputs = {
Pivot = Input { Expression = "self['p'..self.AdvancedPivot]", },
Angle = Input { Value = 20.22, },
Input = Input {
SourceOp = "Text1",
Source = "Output",
},
AdvancedPivot = Input { Value = 0, },
refWidth = Input { Expression = "1/self.Input.OriginalWidth", },
refHeight = Input { Expression = "1/self.Input.OriginalHeight", },
dw1x = Input { Expression = "self.Input.DataWindow[1]", },
dw1y = Input { Expression = "self.Input.DataWindow[2]", },
dw2x = Input { Expression = "self.Input.DataWindow[3]", },
dw2y = Input { Expression = "self.Input.DataWindow[4]", },
p0 = Input { Expression = "Point(refWidth*dw1x, refHeight*dw2y)", },
p1 = Input { Expression = "Point(refWidth*(dw1x+(dw2x-dw1x)/2), refHeight*dw2y)", },
p2 = Input { Expression = "Point(refWidth*dw2x, refHeight*dw2y)", },
p6 = Input { Expression = "Point(refWidth*dw2x, refHeight*(dw1y+(dw2y-dw1y)/2))", },
p4 = Input { Expression = "Point(refWidth*dw1x, refHeight*(dw1y+(dw2y-dw1y)/2))", },
p10 = Input { Expression = "Point(refWidth*dw2x, refHeight*dw1y)", },
p8 = Input { Expression = "Point(refWidth*dw1x, refHeight*dw1y)", },
p9 = Input { Expression = "Point(refWidth*(dw1x+(dw2x-dw1x)/2), refHeight*dw1y)", },
p5 = Input { Expression = "Point(refWidth*(dw1x+(dw2x-dw1x)/2), refHeight*(dw1y+(dw2y-dw1y)/2))", },
},
ViewInfo = OperatorInfo { Pos = { 440, 412.5 } },
UserControls = ordered() {
AdvancedPivot = {
{ MBTNC_ButtonHeight = 60, MBTNC_AddButton = "┏", MBTNCD_ButtonWidth = 0.2 },
{ MBTNCD_ButtonWidth = 0.2, MBTNC_AddButton = "┳" },
{ MBTNCD_ButtonWidth = 0.2, MBTNC_AddButton = "┓" },
{ MBTNCD_ButtonWidth = 0.4, MBTNC_AddButton = "" },
{ MBTNC_ButtonHeight = 60, MBTNC_AddButton = "┣", MBTNCD_ButtonWidth = 0.2 },
{ MBTNCD_ButtonWidth = 0.2, MBTNC_AddButton = "╋" },
{ MBTNCD_ButtonWidth = 0.2, MBTNC_AddButton = "┫" },
{ MBTNCD_ButtonWidth = 0.4, MBTNC_AddButton = "" },
{ MBTNC_ButtonHeight = 60, MBTNC_AddButton = "┗", MBTNCD_ButtonWidth = 0.2 },
{ MBTNCD_ButtonWidth = 0.2, MBTNC_AddButton = "┻" },
{ MBTNCD_ButtonWidth = 0.2, MBTNC_AddButton = "┛" },
{ MBTNCD_ButtonWidth = 0.4, MBTNC_AddButton = "" },
INP_MaxAllowed = 12,
INP_Integer = true,
INPID_InputControl = "MultiButtonControl",
MBTNC_ShowBasicButton = false,
INP_MaxScale = 12,
INP_Default = 5,
ICS_ControlPage = "Controls",
INP_MinScale = 0,
INP_MinAllowed = 0,
LINKID_DataType = "Number",
MBTNC_ShowName = true,
MBTNC_StretchToFit = false,
MBTNC_ShowToolTip = true,
LINKS_Name = "Advanced Pivot"
},
refWidth = {
INPID_InputControl = "SliderControl",
INP_Integer = false,
LINKID_DataType = "Number",
LINKS_Name = "refWidth",
},
refHeight = {
INPID_InputControl = "SliderControl",
INP_Integer = false,
LINKID_DataType = "Number",
LINKS_Name = "refHeight",
},
dw1x = {
INPID_InputControl = "SliderControl",
INP_Integer = false,
LINKID_DataType = "Number",
LINKS_Name = "dw1x",
},
dw1y = {
INPID_InputControl = "SliderControl",
INP_Integer = false,
LINKID_DataType = "Number",
LINKS_Name = "dw1y",
},
dw2x = {
INPID_InputControl = "SliderControl",
INP_Integer = false,
LINKID_DataType = "Number",
LINKS_Name = "dw2x",
},
dw2y = {
INPID_InputControl = "SliderControl",
INP_Integer = false,
LINKID_DataType = "Number",
LINKS_Name = "dw2y",
},
p0 = {
INPID_InputControl = "OffsetControl",
LINKID_DataType = "Point",
LINKS_Name = "p0",
},
p1 = {
INPID_InputControl = "OffsetControl",
LINKID_DataType = "Point",
LINKS_Name = "p1",
},
p2 = {
INPID_InputControl = "OffsetControl",
LINKID_DataType = "Point",
LINKS_Name = "p2",
},
p6 = {
INPID_InputControl = "OffsetControl",
LINKID_DataType = "Point",
LINKS_Name = "p6",
},
p4 = {
INPID_InputControl = "OffsetControl",
LINKID_DataType = "Point",
LINKS_Name = "p4",
},
p10 = {
INPID_InputControl = "OffsetControl",
LINKID_DataType = "Point",
LINKS_Name = "p10",
},
p8 = {
INPID_InputControl = "OffsetControl",
LINKID_DataType = "Point",
LINKS_Name = "p8",
},
p9 = {
INPID_InputControl = "OffsetControl",
LINKID_DataType = "Point",
LINKS_Name = "p9",
},
p5 = {
LINKS_Name = "p5",
LINKID_DataType = "Point",
INPID_InputControl = "OffsetControl",
}
}
}
}
}
It's just one of the Lua ways to address indices in a table.
self[p0]
e.g. or (more common) self.p0
self['p' .. '0']
to achieve the same as above.self['p'..self.AdvancedPivot]
to link it to the advancedPivot Multibutton Control....