-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model/View highligh and aliasing does not work (at least not as in Jamoma 0.5.7) #1009
Comments
Concerning the highlighting, it works in 1.0, though with a different syntax, as shown in the "highlighting" example from the Jamoma Overview Extra |
Concerning the alias, I don't have a strong opinion on the subject, as I never used the feature, or even felt the actual need of it (even I agree it would be an interesting feature if it was completely implemented, which it currently isn't...) |
though, I guess it wouldn't be to hard to replace the name for the alias in the get_state part of the cue_script model concerning displaying the alias instead of the model name in j.ui: that would obviously need to be implemented in j.ui's code.. and, yes, there seem to be some stability improvements to do in order to actually use aliases... |
Is it possible to change the name of a model on the fly? If so the alias feature might be redundant, as one can simply change the name of the model (and its views) instead. |
Thanks Pascal, checking your answers now. So it seems like highlight is a property of the view now rather than the model. I am unsure (both ways) if this is the ideal solution. In one way I can understand that highlighting is part of a visual representation (view), but on the other hand I can also easily see that you want to give all views that subscribe to a particular model one and the same highlight. If so, it would be natural to think of highlight as an attribute of the model, not the view. |
Can that be accomplished (all views of the model) using wildcards? best, On Mon, Aug 1, 2016 at 11:13 AM, Trond Lossuis notifications@github.com
|
|
Though, it’s quite easy to achieve what you want with the current implementation by adding a parameter to the model, e.g. [j.parameter color @type string], and then binding to it in the view, and passing that to the view, such as: What do you think ? |
kind of, if views are named in a clever way using their second arguments… I think the best paths are:
|
For my use it is quite clear that I'd like all views for one and the same model to be highlighted the same way. As such I'd like this to be an amenity of the model. The reason why I want to provide the views for different models with different highlight colours is exactly to discriminate between what model they represent. If I change what model a view subscribes to, I would indeed want the view to automatically change to the appropriate highlight colour. One example of where this is the case is in all DAW programs that I'm aware of. If you set a track to a certain colour, the mixer strip for that track will be given the same colour. This is how highlighting in Jamoma should function as well. |
And I don't want to have to do this manually by adapting and customizing each and every model that I choose to use. I want this feature to be available for standard models provided with the Jamoma distro as well. |
Well, if that's the way you want it to be, then just do it! |
In Jamoma 0.5.7 these two features would work as following:
This would change the colour of the j.ui backgroun panel in the model to the specified colour.
This would cause several changes to the behaviour and display of the model:
/anton
in addition to responing to messages sent to the model/player.1
./player.1
to/anton
/anton
rather than/player.1
.In Jamoma 1 none of them work the same way.
highlight
does not seem to work at all.alias
kind of work but not quite. The displayed name is not changed in the view, and neither is it used when reporting the state of the model. I guess one question is whether this feature is needed any longer at all, or if one rather is able (and should) dynamicallychange the name of the model and it's view for real, instead of operating with an alias?On a sidenote, interacting with
JamomaMax/Jamoma/examples/model features/alias renaming.maxpat
end to result in spinning beach balls.Any thoughts on this @theod and @bltzr ?
The text was updated successfully, but these errors were encountered: