-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge experimental branch to master
- Loading branch information
Showing
27 changed files
with
923 additions
and
850 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
[Width] | ||
Measure=Calc | ||
Formula=(((#BarGap#*#ScaleVisualizer#)+(#BarWidth#*#ScaleVisualizer#))*#BarCount#)+(5*#ScaleVisualizer#) | ||
|
||
[Height] | ||
Measure=Calc | ||
Formula=(#BarHeight#) | ||
|
||
[AbsSinWidth] | ||
Measure=Calc | ||
Formula=(Abs(Sin(#Angle#*PI/180)*Width)) | ||
|
||
[AbsCosWidth] | ||
Measure=Calc | ||
Formula=(Abs(Cos(#Angle#*PI/180)*Width)) | ||
|
||
[AbsSinHeight] | ||
Measure=Calc | ||
Formula=(Abs(Sin(#Angle#*PI/180)*Height)) | ||
|
||
[AbsCosHeight] | ||
Measure=Calc | ||
Formula=(Abs(Cos(#Angle#*PI/180)*Height)) | ||
|
||
; The pivot point is always the top-left corner of the first meter | ||
; The point of rotation (relative to the top-left corner of the skin window) is along the skin boundaries based on the angle | ||
[MoveX] | ||
Measure=Calc | ||
IfCondition=(((#Angle# > 0) && (#Angle# <= 45)) || ((#Angle# > 270) && (#Angle# <= 315))) | ||
IfTrueAction=[!SetOption MoveX Formula 0][!UpdateMeasure MoveX] | ||
IfCondition2=(((#Angle# > 45) && (#Angle# <= 90)) || ((#Angle# > 315) && (#Angle# < 360))) | ||
IfTrueAction2=[!SetOption MoveX Formula (AbsSinHeight)][!UpdateMeasure MoveX] | ||
IfCondition3=(((#Angle# > 90) && (#Angle# <= 135)) || ((#Angle# > 180) && (#Angle# <= 225))) | ||
IfTrueAction3=[!SetOption MoveX Formula (AbsSinHeight+AbsCosWidth)][!UpdateMeasure MoveX] | ||
IfCondition4=(((#Angle# > 135) && (#Angle# <= 180)) || ((#Angle# > 225) && (#Angle# <= 270))) | ||
IfTrueAction4=[!SetOption MoveX Formula (AbsCosWidth)][!UpdateMeasure MoveX] | ||
DynamicVariables=1 | ||
|
||
[MoveY] | ||
Measure=Calc | ||
IfCondition=(((#Angle# > 0) && (#Angle# <= 45)) || ((#Angle# > 90) && (#Angle# <= 135))) | ||
IfTrueAction=[!SetOption MoveY Formula (AbsSinWidth)][!UpdateMeasure MoveY] | ||
IfCondition2=(((#Angle# > 45) && (#Angle# <= 90)) || ((#Angle# > 135) && (#Angle# <= 180))) | ||
IfTrueAction2=[!SetOption MoveY Formula (AbsSinWidth+AbsCosHeight)][!UpdateMeasure MoveY] | ||
IfCondition3=(((#Angle# > 180) && (#Angle# <= 225)) || ((#Angle# > 270) && (#Angle# <= 315))) | ||
IfTrueAction3=[!SetOption MoveY Formula (AbsCosHeight)][!UpdateMeasure MoveY] | ||
IfCondition4=(((#Angle# > 225) && (#Angle# <= 270)) || ((#Angle# > 315) && (#Angle# < 360))) | ||
IfTrueAction4=[!SetOption MoveY Formula 0][!UpdateMeasure MoveY] | ||
DynamicVariables=1 | ||
|
||
; 0 = X-axis, 1 = Y-axis | ||
[NearestAxis] | ||
Measure=Calc | ||
Formula=((((#Angle# > 45) && (#Angle# <= 135)) || ((#Angle# > 225) && (#Angle# <= 315))) ? 1 : 0) | ||
IfCondition=NearestAxis = 1 | ||
IfTrueAction=[!WriteKeyValue Variables NearestAxis "1" "#@#Variables.ini"] | ||
IfFalseAction=[!WriteKeyValue Variables NearestAxis "0" "#@#Variables.ini"] | ||
DynamicVariables=1 | ||
|
||
; Only antialias and set the matrix when the angle has changed | ||
[CheckRotation] | ||
Measure=Calc | ||
Formula=(((#Angle# = 0) || (#Angle# = 360)) ? 0 : 1) | ||
|
||
; Adjust rotation angle based on orientation | ||
[Angle] | ||
Measure=Calc | ||
Formula=(NearestAxis = 0 ? #Angle# : (#Angle# + 90)) | ||
|
||
[Matrix] | ||
Measure=String | ||
String="(Cos([Angle]*PI/180));(-Sin([Angle]*PI/180));(Sin([Angle]*PI/180));(Cos([Angle]*PI/180));[MoveX];[MoveY]" | ||
DynamicVariables=1 | ||
OnUpdateAction= | ||
|
||
; Reveal the transformation by expanding the skin window through an invisible meter | ||
[BoundingBox] | ||
Meter=Image | ||
W=([AbsCosWidth]+[AbsSinHeight]) | ||
H=([AbsSinWidth]+[AbsCosHeight]) | ||
DynamicVariables=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.