Yes I'm using that for my actionbars already. Just checking the options.
The thing is ... you can't just show the frame because it may have been hidden. Not sure if oUF will hide the frame by itself if you get out of petbattle and show it.
Code:
RegisterStateDriver(frame, "visibility", "[petbattle] hide; [vehicleui] hide; show")
Using the statedriver and calling :Show() in dostuff seems to be unsecure aswell. Or is it allowed to call :Show() / :Hide() inside of the statedriver functions that you define manually?
What I like about SetParent is that you don't have to care about the show/hide status of the frame.