AlienAxeMan
Well-known member
If I link an object to a tracker by setting "Link to Atom" to "[CameraRig]" and then "Link To" to "Tracker1", when I save the scene it won't include that as it does with other link data. So, when I load the scene later, the link is cleared.
I've experimented quite a bit and it seems that if I simply add the following to the object's "storables" section of the JSON for the scene, it will load and link as expected:
"linkTo" : "[CameraRig]:Tracker1"
For more context, here's a sample of the JSON as it saves now (without the link to tracker data):
Here's an example of where I've manually edited the JSON to re-inject the link to the tracker:
Additionally, and perhaps unrelated, this "linkTo" does not appear to be exposed such that it can be set from a button action, etc. This lack of functionality makes it so there's no viable workaround currently, as there's no way (that I know of) to re-set that linkage from a button action, logic brick, or even C#.
I've experimented quite a bit and it seems that if I simply add the following to the object's "storables" section of the JSON for the scene, it will load and link as expected:
"linkTo" : "[CameraRig]:Tracker1"
For more context, here's a sample of the JSON as it saves now (without the link to tracker data):
{ "id" : "ISTube", "on" : "true", "type" : "ISTube", "storables" : [ { "id" : "control", "position" : { "x" : "-0.03480911", "y" : "0.822526", "z" : "-0.9369402" }, "rotation" : { "x" : "-2.224455E-07", "y" : "-1.144586E-16", "z" : "5.896271E-08" } } ] } |
Here's an example of where I've manually edited the JSON to re-inject the link to the tracker:
{ "id" : "ISTube", "on" : "true", "type" : "ISTube", "storables" : [ { "id" : "control", "positionState" : "PhysicsLink", "rotationState" : "PhysicsLink", "position" : { "x" : "-0.002687752", "y" : "0.8019442", "z" : "-1" }, "rotation" : { "x" : "-2.224455E-07", "y" : "-1.304775E-13", "z" : "5.89627E-08" }, "linkTo" : "[CameraRig]:Tracker1" } ] } |
Additionally, and perhaps unrelated, this "linkTo" does not appear to be exposed such that it can be set from a button action, etc. This lack of functionality makes it so there's no viable workaround currently, as there's no way (that I know of) to re-set that linkage from a button action, logic brick, or even C#.