Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Tweak default control type #48

Closed
Fire-wood opened this issue Aug 11, 2018 · 1 comment
Closed

Tweak default control type #48

Fire-wood opened this issue Aug 11, 2018 · 1 comment
Labels
editor Issues related to the graphical editor enhancement
Milestone

Comments

@Fire-wood
Copy link
Member

Whenever the name of a control is tweaked, its form will always return to the default knob regardless of what it was previously (slider, button, etc). Having a control that remembers its form and only changes when set by the user would be good.

@Fire-wood Fire-wood added enhancement editor Issues related to the graphical editor labels Aug 11, 2018
@cpdt
Copy link
Member

cpdt commented Aug 12, 2018

So, in order to "bind" controls in the code to those on a node surface, we identify them by their name and type (num, midi, graph, etc). That means if you change the name of a control in the code, it effectively removes the old control and creates a new one - that's why the display mode resets, and connections are removed.

A way around this would be to, instead of creating a new control, find one which isn't bound to anything and "steal" and rename it, instead of deleting it. This wouldn't be perfect, but probably a lot closer to expected behavior.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor Issues related to the graphical editor enhancement
Projects
None yet
Development

No branches or pull requests

2 participants