ArtLyra
New Member
Hi everyone!
As it has been noted before, it's not possible to copy the transformation properties (position, etc.) from a source and paste to another, if the source is inside a group. See bug report here: https://obsproject.com/forum/thread...copy-transform-settings-when-in-group.108499/
It has been over an year now and the problem persists. So as a solution, I was hoping to make a Lua script to do the copy and paste for me. But this method also doesn't work when inside a group, probably for the same reasons.
Another idea I had was to: in the Lua script, remove the item from the group, do the copy and paste, then put the item back into the group. Still, the function 'sceneitem_group_remove_item' doesn't seem to work for me! I'm running out of possibilities now...could someone help?
First I would like to point out that the API Reference is wrong (https://obsproject.com/docs/reference-scenes.html), it currently says:
void obs_sceneitem_group_remove_item(obs_sceneitem_t *item)
obs_sceneitem_t *obs_sceneitem_get_group(obs_sceneitem_t *item)
But when I use them, the script log shows that they should have 2 arguments. I'd be good to have this fixed in the documentation. I believe these arguments should be:
void obs_sceneitem_group_remove_item( obs_sceneitem_t *group, obs_sceneitem_t *item)
obs_sceneitem_t *obs_sceneitem_get_group( obs_scene_t *scene, obs_sceneitem_t *item)
Am I right about the arguments? I've been trying to remove my scene item from the group, but I couldn't do this with obs_sceneitem_group_remove_item. Does this function work? Any suggestion?
As it has been noted before, it's not possible to copy the transformation properties (position, etc.) from a source and paste to another, if the source is inside a group. See bug report here: https://obsproject.com/forum/thread...copy-transform-settings-when-in-group.108499/
It has been over an year now and the problem persists. So as a solution, I was hoping to make a Lua script to do the copy and paste for me. But this method also doesn't work when inside a group, probably for the same reasons.
Another idea I had was to: in the Lua script, remove the item from the group, do the copy and paste, then put the item back into the group. Still, the function 'sceneitem_group_remove_item' doesn't seem to work for me! I'm running out of possibilities now...could someone help?
First I would like to point out that the API Reference is wrong (https://obsproject.com/docs/reference-scenes.html), it currently says:
void obs_sceneitem_group_remove_item(obs_sceneitem_t *item)
obs_sceneitem_t *obs_sceneitem_get_group(obs_sceneitem_t *item)
But when I use them, the script log shows that they should have 2 arguments. I'd be good to have this fixed in the documentation. I believe these arguments should be:
void obs_sceneitem_group_remove_item( obs_sceneitem_t *group, obs_sceneitem_t *item)
obs_sceneitem_t *obs_sceneitem_get_group( obs_scene_t *scene, obs_sceneitem_t *item)
Am I right about the arguments? I've been trying to remove my scene item from the group, but I couldn't do this with obs_sceneitem_group_remove_item. Does this function work? Any suggestion?