Skip to content

frontend: API call obs_frontend_add_transition()#13633

Open
xurei wants to merge 2 commits into
obsproject:masterfrom
xurei:proposal/obs_frontend_add_transition
Open

frontend: API call obs_frontend_add_transition()#13633
xurei wants to merge 2 commits into
obsproject:masterfrom
xurei:proposal/obs_frontend_add_transition

Conversation

@xurei

@xurei xurei commented Jul 9, 2026

Copy link
Copy Markdown

This is my first PR on the OBS project, I hope I'll do it as expected :-)

Description

This PR adds the obs_frontend_add_transition() frontend API call.
This function allows to add global transitions in the collection without showing the popups.

This change required two modifications :

  • Extend OBSBasic::AddTransition() with two new arguments : const char *transitionName = nullptr, bool showProperties = true. The default values ensures retro-compatibility.
  • Add obs_source_t *obs_frontend_add_transition() to the frontend API, with the related documentation

Motivation and Context

I needed this to make a backup system for transitions in my plugin.
I didn't find any reason why it wasn't there, so I assumed it was forgotten.
However, there might be a reason why it wasn't implemented in the first place.

How Has This Been Tested?

I have tested this on Linux with success, not on Windows or MacOS.

Given the changes made, I don't believe much more testing is required.

Types of changes

  • New feature (non-breaking change which adds functionality)
  • Tweak (non-breaking change to improve existing functionality)
  • Documentation (a change to documentation pages)

Checklist:

  • I have read the contributing document.
  • My code has been run through clang-format.
  • My code follows the project's style guidelines
  • My code is not on the master branch.
  • My code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@xurei xurei force-pushed the proposal/obs_frontend_add_transition branch 2 times, most recently from d86d2b7 to ad96193 Compare July 9, 2026 22:47
@xurei xurei changed the title [Proposal] frontend: API call obs_frontend_add_transition() frontend: API call obs_frontend_add_transition() Jul 11, 2026
xurei added 2 commits July 12, 2026 02:40
This allows to add a transition without showing the properties UI
@xurei xurei force-pushed the proposal/obs_frontend_add_transition branch from ad96193 to 860bc07 Compare July 12, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant