[Solved] Macros: refresh the cache when buttons are used?
![Post Post](./styles/bmd_universal/imageset/icon_post_target.gif)
Sorry for the title I didn't find a better phrase.
however here is the problem:
In Fusion, I have made some macro and saved as Edit > Title, that is using several pre-configured text blocks.
I mean: text-block with their field with written phrases in them.
Each field contains a phrase in a language.
I do use 4 languages: English, Dutch, French, Italian.
The goal: I swith these phrase (these languages) just by clicking on a button in the Edit Page
how I do it? All these text-blocks go to a MultiMerge block.
With "Edit Controls" I created buttons, and the "Blend" control that receive the signal from each Text-Block, is controlled by the button.
Here below the code
having said that: everything works fine. I do use this method successfully.
BUT ... yes there is a "but" ... once the Macro -Title I created is imported into the EDIT PAGE, if I click on any button BEFORE the cache is completed, I get the change as i want.
BUT if I switch it AFTER the cache is completed, i don't get it. I need to delete the cache, click on any button I need, then let the cache do its job.
Nwo the question is: how can i delete the cache when I just click on the button in order to get the change immediately? It seems indeed that DaVinci doesn't intercept any change when I click the button to switch forma text to another.
however here is the problem:
In Fusion, I have made some macro and saved as Edit > Title, that is using several pre-configured text blocks.
I mean: text-block with their field with written phrases in them.
Each field contains a phrase in a language.
I do use 4 languages: English, Dutch, French, Italian.
The goal: I swith these phrase (these languages) just by clicking on a button in the Edit Page
how I do it? All these text-blocks go to a MultiMerge block.
With "Edit Controls" I created buttons, and the "Blend" control that receive the signal from each Text-Block, is controlled by the button.
Here below the code
- Code: Select all
ENG
iif(Data.Language==0,1,0)
DUT
iif(Data.Language==1,1,0)
FRE
iif(Data.Language==2,1,0)
ITA
iif(Data.Language==3,1,0)
having said that: everything works fine. I do use this method successfully.
BUT ... yes there is a "but" ... once the Macro -Title I created is imported into the EDIT PAGE, if I click on any button BEFORE the cache is completed, I get the change as i want.
BUT if I switch it AFTER the cache is completed, i don't get it. I need to delete the cache, click on any button I need, then let the cache do its job.
Nwo the question is: how can i delete the cache when I just click on the button in order to get the change immediately? It seems indeed that DaVinci doesn't intercept any change when I click the button to switch forma text to another.