Problems with API: Text parameter of Text Animator

Post your questions here and we'll all try to help.
Post Reply
tkmedia
Met Resolume in a bar the other day
Posts: 1
Joined: Fri Dec 10, 2021 16:38

Problems with API: Text parameter of Text Animator

Post by tkmedia »

I’m experiencing some trouble with the new Resolume REST API.
I’m trying to set the text of a “Text Animator” by using the PUT method, but it doesn’t seem to change the text. I’m using the built in “Swagger UI” to test my commands, but I can’t get it to work.

The weird thing is, I’m able to set other parameters (like for example “Animated Position X”).

The way I’m trying to get it work is by first using the GET command to get the right clip.
localhost:8080/api/v1/composition/layers/2/clips/1
This results into this JSON data: https://pastebin.com/2wnMFkqC

After that I’ve stripped the excess data and shrunk it down to this: https://pastebin.com/pEAPkjSh
I’ve got a 204 response from Resolume so no syntax errors etc.

Does anyone have any idea what I’m doing wrong?

Thanks a lot!!
(Using the latest Resolume at this moment: 7.13.1)
Attachments
298583103_5369758876402990_182834159795882548_n.jpeg
298583103_5369758876402990_182834159795882548_n.jpeg (8.67 KiB) Viewed 2997 times
298668623_5369759733069571_8399315683909172199_n.jpeg

pcholas
Met Resolume in a bar the other day
Posts: 1
Joined: Mon Oct 31, 2022 10:42

Re: Problems with API: Text parameter of Text Animator

Post by pcholas »


martijn
Team Resolume
Posts: 3
Joined: Wed Nov 25, 2020 09:01

Re: Problems with API: Text parameter of Text Animator

Post by martijn »

Right, this is definitely a bug! The example from the Swagger UI should absolutely work, so I'll look into fixing this. In the meanwhile, the request works when you omit the "value" from the object, so instead of doing this:

Code: Select all

curl -X PUT http://localhost:8080/api/v1/composition/layers/2/clips/5 -d '{"video":{"sourceparams":{"Text":{"value": "Resolume 313"}}}}'
which should work, but doesn't, you can do this:

Code: Select all

curl -X PUT http://localhost:8080/api/v1/composition/layers/2/clips/5 -d '{"video":{"sourceparams":{"Text": "Resolume 313"}}}'
which does work.

Post Reply