Question Can a collision trigger be used to update user preferences like disabling a VR hand?

tankson

New member
Messages
5
Reactions
0
Points
1
I want to stay in hand tracking mode, and just bump a button which will toggle whether my VR hand is enabled so it can be free... for other things.
 
Solution
On my to-do list I have a plugin that exposes all user preferences as triggerable. It would not be hard to make... maybe next month? I'll try to remember to update this thread if I make it, unless someone else gets there first
Everything (mostly) can be done with code.
Settings can be modified with code. So yes, you could code a plugin to change settings and would give an action to change whatever you want through triggers.
 
Upvote 0
On my to-do list I have a plugin that exposes all user preferences as triggerable. It would not be hard to make... maybe next month? I'll try to remember to update this thread if I make it, unless someone else gets there first
 
Upvote 0
Solution
Everything (mostly) can be done with code.
Settings can be modified with code. So yes, you could code a plugin to change settings and would give an action to change whatever you want through triggers.
Thanks, I was hoping there was an existing GUI thing I was missing. Can you direct me to any existing plugin that does something similar I could use as a template? This would be my first foray into coding something for VAM.
 
Upvote 0
On my to-do list I have a plugin that exposes all user preferences as triggerable. It would not be hard to make... maybe next month? I'll try to remember to update this thread if I make it, unless someone else gets there first
Sounds great. I would be curious to see if I could make one for my specific case in the meantime. Can you direct me to any existing simple plugin that does something similar I could use as a template?
 
Upvote 0
Generally if a coder (in that case everlaster) does something, it's generally something that feels a void ;) so there's no "template" at the moment of settings modification :p
So the best thing we can direct you to is the base template of a plugin which is contained in \Custom\Scripts\MeshedVR
 
Upvote 0
Sounds great. I would be curious to see if I could make one for my specific case in the meantime. Can you direct me to any existing simple plugin that does something similar I could use as a template?
Try https://hub.virtamate.com/resources/freeze-motion-sound-relay.44385/ as a very simple example. User preferences would be accessible via UserPrefrences.singleton rather than SuperController.singleton, for the most part.

For getting started with VaM plugin development, I suggest joining the official discord and reading the getting started pinned post in the #scripting channel :)
 
Last edited:
Upvote 0
Upvote 0
Back
Top Bottom