2023-12-21, 00:54
@Andrea1998 -
No, because viewtypes are UI and UI is the domain of the skin. Plugins should only serve metadata and leave UI design choices to the skinner.
A plugin forcing viewtype IDs is hack attempting to patch over missing skin functionality which is better addressed in the skin itself. If you want locking viewtypes based on content, then you should discuss with the skinner of your skin about implementing that functionality.
There are several different approaches which can be used to achieve this behaviour in a skin. For instance, my addon SkinVariables provides some tools to achieve this: https://github.com/jurialmunkey/script.s...pe-Builder -- However, viewtype locking can also be achieve natively using only skin code. For example, Eminence 2 had locking viewtypes done with native skin code and I made that skin more than 8 years ago.
No, because viewtypes are UI and UI is the domain of the skin. Plugins should only serve metadata and leave UI design choices to the skinner.
A plugin forcing viewtype IDs is hack attempting to patch over missing skin functionality which is better addressed in the skin itself. If you want locking viewtypes based on content, then you should discuss with the skinner of your skin about implementing that functionality.
There are several different approaches which can be used to achieve this behaviour in a skin. For instance, my addon SkinVariables provides some tools to achieve this: https://github.com/jurialmunkey/script.s...pe-Builder -- However, viewtype locking can also be achieve natively using only skin code. For example, Eminence 2 had locking viewtypes done with native skin code and I made that skin more than 8 years ago.