Changing transform with lua

Ghiaha

New Member
Is it possible to change the transform of a source (resize, translate etc) using a lua script? If not what is the best approach to achieve this programmatically.
Thanks.
 

MacTartan

Member
Check out UP Deck in the resources section. There's an OBS Lua script you can download (http://8up.uk/doc/26 - currently UPDeck_1-12.lua) with code that changes position, size, rotation of scene items.

Check out line 317 - 355
elseif cmd == "position" or cmd == "resize" or cmd == "rotate" then
..........
..........

Hope this gets you started!


P.S. - there's some really good documentation : https://obsproject.com/docs/genindex.html
 
Last edited:
Top