Craluminum
Craluminum
CC#
Created by Craluminum on 3/22/2023 in #help
How to write a specific script
I need a script that can turn this:
"translation": {
"x": -0.15,
"y": -0.22,
"z": 0
},
"rotation": {
"x": 0,
"y": 45,
"z": 0
},
"origin": {
"x": 0.8,
"y": 0,
"z": 0.5
}
"translation": {
"x": -0.15,
"y": -0.22,
"z": 0
},
"rotation": {
"x": 0,
"y": 45,
"z": 0
},
"origin": {
"x": 0.8,
"y": 0,
"z": 0.5
}
into this:
tf.Translation.X = -0.15f;
tf.Translation.Y = -0.22f;
tf.Translation.Z = 0;
tf.Rotation.X = 0;
tf.Rotation.Y = 45;
tf.Rotation.Z = 0;
tf.Origin.X = 0.8f;
tf.Origin.Y = 0;
tf.Origin.Z = 0.5f;
tf.Translation.X = -0.15f;
tf.Translation.Y = -0.22f;
tf.Translation.Z = 0;
tf.Rotation.X = 0;
tf.Rotation.Y = 45;
tf.Rotation.Z = 0;
tf.Origin.X = 0.8f;
tf.Origin.Y = 0;
tf.Origin.Z = 0.5f;
51 replies