Hey all,
I’m trying to solve an issue around constraints and references.
Basically, the issue is when you constrain to a referenced object, then unload the reference, the constrained object freezes. Makes sense because there’s no more input since it’s now just hooked up to the reference node with the last value rather than the target until the target is loaded again.
My rough idea to try and get around it is to have the script that sets up that constraint also constrain to the destination object’s parent and set that weight to zero. Then through some connection (I was hoping for a “loaded” attribute somewhere on the reference node, but no dice) set that to 1 and the target to 0 when the reference is unloaded.
Basically something along the lines of this:
The fallback is to make some sort of callback to do that attribute change, but I’d prefer to avoid that if possible and just do some sort of node network since that seems a little more bullet-proof, but I’m not finding any node/attribute combo that’ll let me do it that way. Not sure if anyone’s dealt with this sort of thing or has any bright ideas, but I figured I’d ask around before throwing in the towel.
Any ideas?
P.S. - We’re on Maya 2018