- Posts: 29
- Joined: Sun Jul 19, 2020 1:31 pm
- Real Name: Stepan Bondar
Hello everyone! Faced a little problem with simple expression in DVR 17.4.
I have an animation of increasing a number from 0 to 100 with a % symbol attached to the right.
Here is the expression
In previous versions, when I removed the last part of the code
Here is the node
I have an animation of increasing a number from 0 to 100 with a % symbol attached to the right.
Here is the expression
- Code: Select all
math.floor((Offset+0.000001)*Value).."%"
In previous versions, when I removed the last part of the code
to leave the animation of increasing numbers without the attached percentage, everything was fine. But in the new 17.4 version when I remove this part.."%"
node stops working..."%"
Here is the node
- Code: Select all
{
Tools = ordered() {
Text1 = TextPlus {
CtrlWZoom = false,
Inputs = {
GlobalOut = Input { Value = 299, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
StyledText = Input {
Value = "100%",
Expression = "math.floor((Offset+0.000001)*Value)..\"%\"",
},
Font = Input { Value = "Open Sans", },
Style = Input { Value = "Bold", },
VerticalJustificationNew = Input { Value = 3, },
HorizontalJustificationNew = Input { Value = 3, },
ManualFontKerningPlacement = Input {
Value = StyledText {
Array = {
},
Value = ""
},
},
Offset = Input {
SourceOp = "Text1Offset",
Source = "Value",
},
Value = Input { Value = 100, },
},
ViewInfo = OperatorInfo { Pos = { 0, 49.5 } },
UserControls = ordered() {
Offset = {
INPID_InputControl = "ScrewControl",
INP_Integer = false,
LINKID_DataType = "Number",
LINKS_Name = "Offset",
},
Value = {
INP_Integer = false,
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
INP_MinScale = 0,
INP_MaxScale = 1000,
LINKS_Name = "Value",
}
}
},
Text1Offset = BezierSpline {
SplineColor = { Red = 234, Green = 92, Blue = 75 },
KeyFrames = {
[0] = { 0, RH = { 17.4242424242424, 0 } },
[25] = { 1, LH = { 7.57575757575757, 1 } }
}
}
},
ActiveTool = "Text1"
}