Skip to content

frontend: Add copy paste functions#8286

Open
exeldro wants to merge 1 commit intoobsproject:masterfrom
exeldro:frontend_copy_paste
Open

frontend: Add copy paste functions#8286
exeldro wants to merge 1 commit intoobsproject:masterfrom
exeldro:frontend_copy_paste

Conversation

@exeldro
Copy link
Contributor

@exeldro exeldro commented Feb 17, 2023

Description

Add frontend copy paste functions

void obs_frontend_copy_sceneitem(obs_sceneitem_t *item);
bool obs_frontend_can_paste_sceneitem(bool duplicate);
void obs_frontend_paste_sceneitem(obs_scene_t *scene, bool duplicate);

Motivation and Context

Allow users from the vertical plugin to copy and paste sources from and to the main canvas

How Has This Been Tested?

On windows with changes to the vertical plugin

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

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

@exeldro exeldro force-pushed the frontend_copy_paste branch 2 times, most recently from d52d8c7 to 33e90a5 Compare February 17, 2023 15:14
@RytoEX RytoEX added the New Feature New feature or plugin label Feb 17, 2023
Copy link
Member

@PatTheMav PatTheMav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll have to give this a test locally but at first glance this seems fine and I also agree that it's preferable for 3rd party code to use these built-in functions to duplicate or alias existing sources.

@PatTheMav PatTheMav moved this from In review to In progress in OBS Studio 32.0 PR Considerations Aug 8, 2025
@PatTheMav
Copy link
Member

Tested this locally and seemed to work just fine.

@exeldro exeldro force-pushed the frontend_copy_paste branch from 2ba999c to 787085b Compare August 13, 2025 14:02
@exeldro exeldro changed the title UI: Add frontend copy paste functions frontend: Add copy paste functions Aug 13, 2025
@exeldro exeldro force-pushed the frontend_copy_paste branch from 787085b to 1855b28 Compare August 16, 2025 18:24
@exeldro
Copy link
Contributor Author

exeldro commented Aug 16, 2025

Switched methods to camelCase as requested

@exeldro exeldro force-pushed the frontend_copy_paste branch from 1855b28 to e88b53f Compare December 18, 2025 07:23
@RytoEX RytoEX requested review from PatTheMav and RytoEX December 18, 2025 20:36
@RytoEX RytoEX moved this from Requires Changes to In Review in OBS Studio 32.1 PR Considerations Dec 18, 2025
@RytoEX RytoEX moved this from In Review to Requires Changes in OBS Studio 32.1 PR Considerations Dec 18, 2025
@PatTheMav PatTheMav moved this from Requires Changes to Ready For Merge in OBS Studio 32.1 PR Considerations Jan 13, 2026
@exeldro exeldro force-pushed the frontend_copy_paste branch from e88b53f to 9786c83 Compare February 26, 2026 17:36
@exeldro exeldro force-pushed the frontend_copy_paste branch 2 times, most recently from 45dbbdb to 55d6932 Compare February 26, 2026 18:23
@exeldro
Copy link
Contributor Author

exeldro commented Feb 26, 2026

Rebased and fixed conflicts

@exeldro exeldro force-pushed the frontend_copy_paste branch from 55d6932 to 15855c2 Compare February 26, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Feature New feature or plugin

Projects

Status: Ready For Merge

Development

Successfully merging this pull request may close these issues.

4 participants