TVPaint george script: Change paper parameters

Here’s a small tvpaint george script that allows you to change the size, angle and invert state of the current paper:


tv_paperInfo
Parse Result strHardness valHardness strInvert valInvert strSize valSize strAngle valAngle strOffsetX valOffsetX strOffsetY valOffsetY strFlipX valFlipX strFlipY valFlipY strActive valActive strName valName

tv_ListRequest "Size 100|Size 50|Size 25|Size 10|Angle 0|Angle 45|Angle 90|Angle 180|Invert"

Parse Result Dummy ThePick

If (Cmp(ThePick,"Cancel") == 0)

If (Cmp(Dummy,"0") == 1)
tv_paper "Size" 1.0000
END

If (Cmp(Dummy,"1") == 1)
tv_paper "Size" 0.5000
END

If (Cmp(Dummy,"2") == 1)
tv_paper "Size" 0.2500
END

If (Cmp(Dummy,"3") == 1)
tv_paper "Size" 0.1000
END

If (Cmp(Dummy,"4") == 1)
tv_paper "Angle" 0
END

If (Cmp(Dummy,"5") == 1)
tv_paper "Angle" 45
END
If (Cmp(Dummy,"6") == 1)
tv_paper "Angle" 90
END
If (Cmp(Dummy,"7") == 1)
tv_paper "Angle" 180
END

If (Cmp(Dummy,"8") == 1)

If (Cmp(valInvert,"0") == 1)
tv_paper "Invert" 1
ELSE
tv_paper "Invert" 0
END

END
END

You must be logged in to post a comment.