. i've worked w/some filer effects in modules (120 avFX) so maybe i can offer some insight...
. as i understand the effects system, you basically update the effect information, clear the filters, then push the changed effects into the filters...
. so, you want to use : {'FILTER': '(CI) Hole Distortion', 'PARAMETERS': {'Center Y': 0.5, 'Center X': 0.5, 'Radius': 0.0}}
. quick sidebar - how did I know the definition? i edit the 'Filter (layer)' module and have it print out the effects being used...
. in the 'Filters (layer)' module, in Init() towards the bottom - uncomment the '##print filters' line and Cmd-Option-O to see the output
Code: Select all
def setFilters():
filters = [{},{},{},{}]
for i in range(0,4):
if enabledPass[i]:
filters[i] = filtersPass[i]
modul8.setFilters(filters, 0, postFilters)
##print filters <------- uncomment this line!
# Last initializations
. i would suggest re-commenting that line once you get the definitions so you don't waste resources printing stuff out.
. ok, so now you have a dictionary item of your effect...
. in Init()
Code: Select all
myFx = {'FILTER': '(CI) Hole Distortion', 'PARAMETERS': {'Center Y': 0.5, 'Center X': 0.5, 'Radius': 0.0}}
. somewhere in your code, you want to assign the variable that is doing the smoothing to the myFx['PARAMETERS']['Radius']
. then in PeriodicalEvent() something like
Code: Select all
myFx['PARAMETERS']['Radius'] = varThatIsSmoothing
modul8.setFilters([{}],0,False)
modul8.setFilters(myFx,0,False)
. good luck!
-james
(a nomad. )