You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When im updating an element like this:
config.GetParent().GetParent().GetElement(u"Image").SetString(u"path",u"")
nothing happends until i reload the source manually, i saw that the sceneitem has SceneItem.Update() but how can i find the SceneItem from my XElement? Or is there another way?
Thanks!
The text was updated successfully, but these errors were encountered:
Your are correct it's a 2 step process:
Updating the relevant config and then calling UpdateSettings() on the SceneItem:
Below should work for the current scene, not sure if you can do it for items in other scenes that are not active scene never tried.
OBS.GetSceneElement().GetElement("sources").GetElement(sourceName).GetElement("data")
Set the values you want then call
OBS.GetScene().GetSceneItemByName(sourceName).UpdateSettings()
It should be noted that if a source is not active when you call UpdateSettings it can crash obs. Eg changing the text in a disabled text source and calling UpdateSettings() will segfault obs
When im updating an element like this:
config.GetParent().GetParent().GetElement(u"Image").SetString(u"path",u"")
nothing happends until i reload the source manually, i saw that the sceneitem has SceneItem.Update() but how can i find the SceneItem from my XElement? Or is there another way?
Thanks!
The text was updated successfully, but these errors were encountered: