[live.observer name] not working?
I am trying to observe the name of an object with changing names, but it does not seem to work.
Does this have to do with hidden parameters (_parameter_name)?
Any other ideas why?
Yes, in the context of M4L, these hidden parameters are hidden because you're not supposed to change them during runtime as unexpected things might happen, like Live loosing track of them, hence the impossibility to get the changing hidden param through [live.observer].
However, if the object is in the same patch, I think you can use [pattr @bindto objects_scripting_name::_parameter_shortname] and it should work as it doesn't rely on the Live API. This said, changing hidden params in the context of M4L is bad practice anyway.
Thanks for the reply. So it is as I though. The pattr option seems interesting. I'll take a look at it.
If using [pattr @bindto] I usually add @autorestore 0 @invisible 1
so the object doesn't recall value when the patch starts, and is hidden from [pattrstorage] if any.
Another solution is to use [pattrhub] to which you send a getvarname::_parameter_shortname
message (where you need to replace varname by the actual varname/scripting name of the object you want to target), but you need to send this message anytime you want to know the _parameter_shortname
. It won't output automatically at change like [pattr @bindto] would.