View Full Version : Is it possible to animate tweak?
Floatingshed
25th August 2010, 13:38
What I want to achieve is a gradual increase in brightness over a range of frames.
e.g. Frame0: bright=0, frame60: bright=20
I really don't understand animate, I find the documentation confusing and I'm not even certain that it is the filter to use for this. Please someone point me in the right direction. Thanks.
Didée
25th August 2010, 13:48
# Animate Tweak() from frame 100 to 200
someclip
Animate( 100, 200, "Tweak", 0.0,1.0,0.0, 0.0,1.0,20.0 )
# ----------- ============
# start params end params
Floatingshed
25th August 2010, 14:39
# Animate Tweak() from frame 100 to 200
someclip
Animate( 100, 200, "Tweak", 0.0,1.0,0.0, 0.0,1.0,20.0 )
# ----------- ============
# start params end params
Yes, that works fine, thanks.
Is it possible to use the tweak named arguments in this situation?
Umamio
31st August 2010, 13:24
Yes, that works fine, thanks.
Is it possible to use the tweak named arguments in this situation?
Create your own custom function first that passes named arguments to tweak.
Like so:
function mySpecialTweak(clip c, float var1, float var2, float var3, float namedVarValue1, float namedVarValue2)
{
return c.Tweak(var1,var2,var3,varName1 = namedVarValue1, varName2 = namedVarValue2)
}
Animate( 100, 200, "mySpecialTweak", 0.0,1.0,0.0,0.0,0.0 0.0,1.0,20.0,5.0,10.0 )
or if you want to pass a named var value that doesn't animate (in this example a boolean, but could be a number or string):
function mySpecialTweak(clip c, float var1, float var2, float var3)
{
someBooleanVar = TRUE # or False
return c.Tweak(var1,var2,var3,BoolVarName = someBooleanVar )
}
Animate( 100, 200, "mySpecialTweak", 0.0,1.0,0.0,0.0,1.0,20.0)
sonu patel
5th September 2010, 23:24
Create your own custom function first that passes named arguments to tweak.
Like so:
function mySpecialTweak(clip c, float var1, float var2, float var3, float namedVarValue1, float namedVarValue2)
{
return c.Tweak(var1,var2,var3,varName1 = namedVarValue1, varName2 = namedVarValue2)
}
Animate( 100, 200, "mySpecialTweak", 0.0,1.0,0.0,0.0,0.0 0.0,1.0,20.0,5.0,10.0 )
or if you want to pass a named var value that doesn't animate (in this example a boolean, but could be a number or string):
function mySpecialTweak(clip c, float var1, float var2, float var3)
{
someBooleanVar = TRUE # or False
return c.Tweak(var1,var2,var3,BoolVarName = someBooleanVar )
}
Animate( 100, 200, "mySpecialTweak", 0.0,1.0,0.0,0.0,1.0,20.0)
CAN U PLZ EXPALIN IT IN DETAILS TO GET BEST COLOUR SETTING TO A SOURCE AND GET BEST RESULT ..........:thanks:
Umamio
7th September 2010, 09:57
I don't often use Tweak, and it's impossible to say what is best for all sources (and you would need to post a video / image sample to receive any suggestions for your specific video) but this thread (http://forum.doom9.org/showthread.php?t=121410) might help you find the right filter/settings for your needs.
There is also an excellent list of avisynth filters (http://avisynth.org/mediawiki/External_filters#Levels_and_Chroma) that deal with chroma. Some, like autolevels, have automagic settings.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.