Troubleshooting

Cant set textfield 'content' to local variable

Started by Bonobo on .

Sign in or create an account to join the conversation.

3 posts

Topic starter
Hello swarm intelligence !

Bit of a small problem with a local variable in a multislider (just 1 slider) object.

When I set a local variable for the slider's x value I can monitor this variable just fine from the outside.
If I want to set a text field´s "content" attribute to the value of this variable though, nothing happens.
I can successfully set the "content" attribute to a string but not the value of variable "slider_value".

This is the exact same thing as in the documentation with the example for a fader, but no luck.
What am I missing ?

Your help is highly appreciated.
Thank you !

[img]https://i.imgur.com/gHF53Aj.jpg[/img]
[img]https://i.imgur.com/NYcW37m.jpg[/img]
hi there,

attribute 'content' is a text field not a digit field ...
-> ...'content','' + slider_value);

this makes it to a text field and in the Text object you have to leave out "slider_value" this is a static text field...

cheers
schoko