CatxFish / motion-effect

obs-studio plugin for source item animation
https://obsproject.com/forum/resources/motion-filter.668/
GNU General Public License v2.0
212 stars 38 forks source link

Merged two filters into one. Removed extraneous hotkey assignment. #12

Closed GrandyB closed 6 years ago

GrandyB commented 6 years ago

TODO:

CatxFish commented 6 years ago

Haven't test all the behavior yet , but leave a reminder for the future release : Minimum OBS Studio Version should change to 21.0.0 after this commit because of "obs_property_set_modified_callback2"

CatxFish commented 6 years ago

A Potential issue to discuss : If someone choose round-trip behavior and do forward animation then change the behavior, should we restore the source to the origin position or just ignore it?

GrandyB commented 6 years ago

There's a number of issues regarding this, including transition issues, where two scenes with a differently sized image in actually inherits whatever sizing the live scene's image has when it goes to live. So if the live one is 300x300, whatever new image becomes 300x300 lol.

In regards to the frontend hotkeys, unless there's some way we can find of getting and updating the live scene without hitting the transition button, the best we can do is have any registered hotkeys remain in the global namespace until we transition the new settings over.

e.g. I set filter to round trip and transition - both move and there's hotkeys for both in global and in scene. I then set filter to one way. It removes the backwards hotkey for the scene but keeps it in global until you then transition that scene to live.

As said, we've got a bunch of buggy behaviour in relation to preview<->live so I'm less concerned about this. I'll update the pull request with the older hotkey registration code, then work on the modified motion behaviours, at which point I should be bug fixing a bunch of stuff as I go. This would include your last question. It may or may not make sense after I update those behaviours.

Sound reasonable? I'd suggest not doing a release until we've reached that point... so might also not be worth implementing this merge request either?

CatxFish commented 6 years ago

I agree with you , you can focus on the these behaviors first , and just try what you want to do. I opened a new branch for the ongoing modification .