exeldro/obs-move-transition

triggering source move while filter window is closed moves source to 0,0 scale 0,0

jdudetv opened this issue · 1 comments

If you are updating the transform text over obsWS and then settings the filter visibility to true while the filter window is closed it will animate the sources position to 0,0 and scale it down to 0,0 so it dissapears into the top right. if you open the filter page back open on the scene it will update to the correct position again. Also happens if you are actively moving the filters window around the screen.

Example video below showing me updating the sources transform_text to a random position on the screen every time it finishes moving.

macrograph_LwYGhxHfAa.mp4

When transform_text is changed via the UI it calls obs_property_modified, that does not happen when the setting is modified via obs-websocket. The transform_text is split in settings you can set via obs-websocket:

{
    "transform_text": "pos: x 0.0 y 0.0 rot: 0.0 scale: x 1.000 y 1.000 crop: l 0 t 0 r 0 b 0",
    "source": "Stroke",
    "rot": 0.0,
    "rot_sign": " ",
    "pos": {
        "x": 0.0,
        "x_sign": " ",
        "y": 0.0,
        "y_sign": " "
    },
    "scale": {
        "x": 1.0,
        "x_sign": " ",
        "y": 1.0,
        "y_sign": " "
    },
    "bounds": {
        "x": 0.0,
        "x_sign": " ",
        "y": 0.0,
        "y_sign": " "
    },
    "crop": {
        "left": 0.0,
        "left_sign": " ",
        "top": 0.0,
        "top_sign": " ",
        "right": 0.0,
        "right_sign": " ",
        "bottom": 0.0,
        "bottom_sign": " "
    }
}