• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

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

tankson

New member
Joined
Nov 3, 2024
Messages
8
Reactions
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
I managed to get this working with a script that was pretty much just this:

_param = new JSONStorableBool("Left Hand Disable", false, val => { if(val) { UserPreferences.singleton.motionHandModelControl.leftHandChoice = "None"; } else { UserPreferences.singleton.motionHandModelControl.leftHandChoice = "Male 2"; } }); RegisterBool(_param);
 
Upvote 0
Back
Top Bottom