question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[request] "Duplicate source"

See original GitHub issue

I’m transporting my code that used obs-websockets-py to an OBS script. Now, every request that I did with websockets, I have to do it with Python. This cheatsheet is very usefull for me! Now, I have to transport this simple code:

ws.call(requests.DuplicateSceneItem(item, fromScene=fromScene, toScene=toScene))

But I think it is not that simple to do it as script. Can you give me a hand? Also, it would be great if there was both options: “Reference” and “Duplicate” 😁.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
upgradeQcommented, Jul 8, 2021

Added this to examples

1reaction
upgradeQcommented, Jan 17, 2021

I use to duplicate items from/to scenes that are/aren’t in focus. Why did you bold “if selected scene is not in focus”? What happens if I duplicate to current scene?

I’ve used source from current scene which was not present in selected scene to “Duplicate source”. If there is no source with name from script properties UI present in current_scene it might crash on repetitive clicks.

How to make a reference?

In OBS Studio code linked above it’s done doing this:

obs_source_t *source = obs_get_source_by_name(name);

You might try using duplicate to get a reference duplicate = obs.obs_sceneitem_get_source(scene_item) And later change this line: scene_item2 = obs.obs_scene_add(scene, duplicate)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question / Help - Paste (duplicate) and paste (reference)
I'm new to OBS and I can see that sources can be copied and paste but what is the difference between paste duplicate...
Read more >
How To Copy And Duplicate a Source on OBS Studio - YouTube
How To Copy And Duplicate a Source on OBS StudioSubscribe to How to Media to get more solutions to your problems!
Read more >
Azure Migrate Duplicate Source - Microsoft Q&A
"This source is a duplicate of another source added previously either with the same or a different friendly name of credentials." There is...
Read more >
How to duplicate a data source - Klipfolio Help Center
To duplicate a data source: Click Data Sources in the left navigation bar to open your list of data sources. If you don't...
Read more >
How to fix "W: Duplicate sources.list entry"? - Ask Ubuntu
Open it and choose Edit -> Software Sources -> Other Software tab. Simply look for the duplicate entries and uncheck them. (This is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found