SuperFlyTV / GraphicsDataDefinition

A subset of JSON-schema, defining a generic data interchange bwtween graphics templates and their controllers
MIT License
18 stars 4 forks source link

Add GDD Type invoke-action (using function name) #23

Open nytamin opened 1 year ago

nytamin commented 1 year ago

This PR adds a special GDD Type called "invoke-cction".

The intention is to allow the user to click on buttons in the GUI to INVOKE custom functions in the template (this is a fairly common use case for CasparCG templates).

Following the dicussion in #11, this suggestion instead defines the name-of-the-function and the arguments, thus avoiding blindly parsing and eval of potentially unknown scripts.