OK, now that I needed Auto Cropping I found out how to use the expressions.
Just copy and paste the code below in your Fusion flow. It'll add an "AutoDomain" node and a "Crop" node with the necessary expressions already in place.
- Code: Select all
{
Tools = ordered() {
AutoDomain1 = AutoDomain {
ViewInfo = OperatorInfo { Pos = { 715, 181.5 } },
},
Crop1 = Crop {
Inputs = {
XOffset = Input {
Value = 896,
Expression = "self.Input.DataWindow[1]",
},
YOffset = Input {
Value = 829,
Expression = "self.Input.DataWindow[2]",
},
XSize = Input {
Value = 136,
Expression = "self.Input.DataWindow[3]-self.Input.DataWindow[1]",
},
YSize = Input {
Value = 140,
Expression = "self.Input.DataWindow[4]-self.Input.DataWindow[2]",
},
Input = Input {
SourceOp = "AutoDomain1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 715, 214.5 } },
}
}
}
I hope this helps. Important note: There was a change in Fusion's expression syntax that requires to put "self." in front of the "Input.DataWindow". So the expression that was posted in 2015 no longer works.