( http://user.services.openoffice.org/en/ ... 10&t=10387 )
Background: On each Impress slide I put several text elements and then assign the Custom Animation effect "Appear" to each. So for each slide I first get textblock1 displayed and after next click textblock2, after next textblock 3, and so on until all textblocks in that slide are displayed. Then that is repeated on the next slide. This means that I need to assign "Appear" a lot of times. Then it becomes tedious to do these steps each time: (1) select Custom Animations under tasks, (2) click "Add", (3) click "ok". It would be much quicker with a one-step solution (i.e. a hotkey or a toolbar button). I can't find any such default option.
Question: How do I make a macro that when run assigns the Custom Animation effect "Appear" to the currently selected object?
I think these resources are relevant:
http://api.openoffice.org/docs/common/r ... ffect.html
http://wiki.services.openoffice.org/wik ... teractions
I made this (non-working) attempt at a macro:
Code: Select all
Sub test
rem add custom animation: Appear to selected object
dim selection as object
selection = ThisComponent.CurrentController
selection.setPropertyValue("Effect", com.sun.star.presentation.AnimationEffect.APPEAR );
End Sub