Whoops…Nothing found

Try other keywords in your search

How to get and use API Handles

 0 Minutes



Get the handle of an object

It is possible to copy the handle of an element by right-clicking on them and selecting "Copy Handle to Clipboard".


This feature is only available in version 1.9.xxx and above

How to use the handle in Control with Lua Code

Most functions can use the handle as argument!

We will set the text of this Text Resource as example:

--first we create a handle objekt and copy the handle
local handle = pixc.createHandle(6241433728519295)
--then we can do api calls directly with the handle
Pixera.Resources.Resource.setText(handle,"Hello World")



How to use the handle in the API with JSON 


See the Quick Start Guide for the API first!

API Quick Start Guide


As an example, we set the same command with the API

{"jsonrpc":"2.0", "id":18, "method":"Pixera.Resources.Resource.setText", "params":{"handle":6241433728519295, "text":"API"}}


Pixera 1.9.135 | 11. September 2023

Was this article helpful?