• Hi Guest!

    Please be aware that we have released another critical security patch for VaM. We strongly recommend updating to version 1.22.0.12 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.
Controller Link Triggers

Plugins + Scripts Controller Link Triggers

Stopper

Invaluable member
Featured Contributor
Messages
360
Reactions
4,648
Points
123
Stopper submitted a new resource:

Controller Link Triggers - Allows changing link targets and parent atoms via trigger

A small plugin that adds the ability to change "Link To" settings and parent atoms via trigger.

Thanks to @Ashen Ryder for the idea.

Usage
  1. Add to an Atom
  2. The atom's main controller (named 'control') will now have a parentAtom selector that can be modified via trigger.
  3. Each other controller will now have a linkToAtom and lingToRigidbody setting. These function similarly to the settings in the UI.
    1. The linkToAtom...

Read more about this resource...
 
Hi Stopper! I'm hoping you might be able to help me with a problem using this..

Firstly, this is awesome and it means I can temporarily link a person to e.g. a revolving object - so cool. But... although it works perfectly when loaded into an open scene, it only works about 80% of the time after opening a saved scene which contained the plugin when saved, less often if using Timeline to trigger.

I've tried the following:
1) Forget Timeline, apply using buttons - more effective than Timeline, but definitely not guaranteed.
2) In scene, disable/re-enable via triggers, then apply link 1 or more times. - no effect.
3) Reload the plugin after encountering the problem - this is guaranteed to work, but (afaik) can't reload plugins via trigger.

Could plugin order make a difference? Is there a way of reloading plugins via triggers that I've missed?

Many thanks for your excellent plugins and I hope to keep using this one :)
 
Hi Stopper! I'm hoping you might be able to help me with a problem using this..

Firstly, this is awesome and it means I can temporarily link a person to e.g. a revolving object - so cool. But... although it works perfectly when loaded into an open scene, it only works about 80% of the time after opening a saved scene which contained the plugin when saved, less often if using Timeline to trigger.

I've tried the following:
1) Forget Timeline, apply using buttons - more effective than Timeline, but definitely not guaranteed.
2) In scene, disable/re-enable via triggers, then apply link 1 or more times. - no effect.
3) Reload the plugin after encountering the problem - this is guaranteed to work, but (afaik) can't reload plugins via trigger.

Could plugin order make a difference? Is there a way of reloading plugins via triggers that I've missed?

Many thanks for your excellent plugins and I hope to keep using this one :)
So I found a bug that I'll patch shortly. It may or may not be what you're seeing. Let me know if the next version fixes it for you, and if not if you see any error logs.
 
Hi Stopper! I'm hoping you might be able to help me with a problem using this..

Firstly, this is awesome and it means I can temporarily link a person to e.g. a revolving object - so cool. But... although it works perfectly when loaded into an open scene, it only works about 80% of the time after opening a saved scene which contained the plugin when saved, less often if using Timeline to trigger.

I've tried the following:
1) Forget Timeline, apply using buttons - more effective than Timeline, but definitely not guaranteed.
2) In scene, disable/re-enable via triggers, then apply link 1 or more times. - no effect.
3) Reload the plugin after encountering the problem - this is guaranteed to work, but (afaik) can't reload plugins via trigger.

Could plugin order make a difference? Is there a way of reloading plugins via triggers that I've missed?

Many thanks for your excellent plugins and I hope to keep using this one :)

First off, thanks for the awesome plugin, Stopper! This plugin definitely fills a gap in VaM's functionality. Unfortunately, I can confirm the same behavior with version .2 that FluffyBunny mentioned. If I save a scene where the plugin is working fine, close VaM, relaunch/reload the scene and press the buttons that I configured to assign different parenting, the parent doesn't change. However, if I enter Edit mode, click on the character that is receiving the parenting trigger, and then push the button, I can see that the parenting changes. It seems like some something happens when the character's menu is loaded that is necessary for this plugin to work correctly. Let me know if I can be of any assistance with testing...
 
A little more information....

Tested this several times and I definitely confirmed it "fixes" itself when you open up the Person Atom that is accepting the parenting trigger. Also, until you do that, any button that uses the parentAtom Receiver Target will not complete all the actions assigned to that button.

For example, say I'm trying to assign a the parent atom as the first step of a button on a male character (parenting to a female character), with three more steps after that parenting action. Before opening the Person Atom UI, the parenting will fail, and button steps 2-4 don't even execute (UPDATE: I determined the actions 2-4 *sometimes* execute, but not always). Then, if I open the male character's Person Atom UI and go to "Control & Physics 1", I can push the button, visually see the parenting changes correctly, and steps 2-4 on the button then run and complete successfully.
 
Last edited:
Hey Stopper, somehow I missed that you put out a bugfix. Unfortunately, I'm still having the same issue where I click a button that changes parenting (and then a bunch of other stuff), but the parenting doesn't change and nothing else past the parenting step executes. I can click it numerous times, and 1 of 3 things will happen:

1) Doesn't parent and nothing else on the button executes.
2) Doesn't parent, but everything else on the button executes.
3) Parents and everything else on the button executes.

I have tried clearing my cache, doesn't help. I can close VaM, relaunch the exact scene without any changes, and it works without problems. Then close VaM again, relaunch the same scene, and it's broken again. Sometimes it isn't working, I play around for a bit, and then magically it works for the rest of that scene load. Confirmed that opening the person's atom UI makes it start working again. Maybe that will give you a clue on the fix? It's a workaround for now, but not great when trying to send out a polished scene. I hope you can fix it, because this functionality is drastically needed in VaM!

Any ideas? Thanks! (BTW, I'm using version .3)

--WolfmanVR
 
Last edited:
Hello,
I'm curious if this plugin works for Parenting a Person atom to something. I tried it and I can't get it to work.
I'm trying to parent a Person to an Shape atom that will be spinning and then later i need to not have the person parented to anything. Any thoughts how I might achieve that? Trying it with timeline and triggers but the link to atom trigger doesn't work.
 
Hello,
I'm curious if this plugin works for Parenting a Person atom to something. I tried it and I can't get it to work.
I'm trying to parent a Person to an Shape atom that will be spinning and then later i need to not have the person parented to anything. Any thoughts how I might achieve that? Trying it with timeline and triggers but the link to atom trigger doesn't work.

Slam - At first I thought I was doing something wrong, so I created a very simple scene that has a sphere, a cube, a person, and two buttons - "parent to sphere" and "parent to cube". On a fresh VaM start and scene load, it doesn't work no matter how many times I push the different parent buttons. Then, if I open the person atom, I can get it to start working (with caveats, see below). So yes, it's possible to use this on a person atom, but as of the .3 release it still doesn't work correctly until you do the workaround. (FYI - I verified I only have the .3 version in my AddonPackages directory and the .3 VAR is being referenced in my sample scene).

I attached a couple versions of my sample scene to this post. The first one starts out with the female parented to the sphere. If you wiggle the sphere, you'll see her move too. If you click on the "parent to cube" button, and then wiggle the cube, she will not move. But, open the person atom, and then click "parent to sphere" first (even though she is already parented to it, for some reason you need to do that first). From my tests, clicking on "parent to cube" will NOT work until you re-parent to the sphere. Then any parent button will switch correctly. Make sure this is the very FIRST SCENE you load after you launch VaM (because you may have opened a person atom in a different scene, and then it will incorrectly appear to work just fine). I also attached a video that clearly demonstrates the behavior.

The second version of the scene (Quick_Parenting_Test2_no_initial_parent) starts with the female not parented to anything. After opening the person atom, you can click on either parent button and it works just fine. So there appears to be an additional bug if the person is already parented to something, you have to re-parent to that object first (or perhaps some other workaround?), and then parenting will start working. So, I would suggest you start a scene without any parenting to anything if you are going to use this manual override method. (Sorry for the slow videos. I had an intensive process running on my PC that was slowing down VaM quite a bit. Honestly, my VaM performs better than that. LOL :ROFLMAO: ).

I had to abandon using it because even if you give a disclaimer people might not know what you are talking about, or totally miss the "hey do this first" note, and then they play your scene and it doesn't work correctly. I wanted it for this scene --> https://hub.virtamate.com/resources/sacrifice-to-the-stars.20824/ , but ended up having to come up with an alternative method to get the female on and off the wheel via a complex set of buttons that change instructions depending on the state of the scene. Hopefully Stopper will come back to this plugin someday (because the functionality is greatly needed!!!), but it appears Stopper might be done working on it...
 

Attachments

  • Quick_Parenting_Test.json
    118.8 KB · Views: 0
  • Quick_Parenting_Test.mp4
    16.3 MB
  • Quick_Parenting_Test2_no_initial_parent.json
    119 KB · Views: 0
  • Quick_Parenting_Test2_no_initial_parent.mp4
    16.4 MB
Hello,
Thanks for this. Your second one worked fine. I just opened the scene and clicked each button and the parenting moved each time.
I then saved with the sphere on then opened another scene then went back to the sphere saved one and it still worked.
I might keep playing with it to see that it still works.
 
Hello,
Thanks for this. Your second one worked fine. I just opened the scene and clicked each button and the parenting moved each time.
I then saved with the sphere on then opened another scene then went back to the sphere saved one and it still worked.
I might keep playing with it to see that it still works.

Did the second work fine on a fresh VaM launch and that's the first scene you loaded? It doesn't for me.
 

Similar threads

Replies
0
Views
179
Assets + Accessories DJ Controller
Replies
0
Views
220
Replies
1
Views
306
Back
Top Bottom