Skip to content

Added feedback to create variables - #82

Open
Nico96R wants to merge 3 commits into
bitfocus:masterfrom
Nico96R:global-variables
Open

Added feedback to create variables#82
Nico96R wants to merge 3 commits into
bitfocus:masterfrom
Nico96R:global-variables

Conversation

@Nico96R

@Nico96R Nico96R commented May 17, 2026

Copy link
Copy Markdown

Added another feedback so you can use osc feedbacks as variables
Updated version number to 2.9.0

Nicolas Rasor added 3 commits May 17, 2026 11:44
update @companion-module/base to 2.0.4 and @companion-module/tools to ^3.0.1

migrate entrypoint and variable definitions for base 2.x, and align option expressions with new API
Comment thread osc.js
},
},
osc_feedback_value: {
type: 'boolean',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be type: 'value'.

Comment thread osc.js
this.log('debug', `Evaluating feedback ${feedback.id}.`);

const rx_args = this.onDataReceived[path];
return String(rx_args[0].value);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably shouldn't be blindly stringifying the value here; any json safe value is allowed. It would be good to preserve numbers.
Maybe this should check the arg type and stringify only for this which arent allowed? (some buffer/blob types probably)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants