© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
50 replies
Craluminum

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;
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

❔ Trying to figure out how to write a simple script
C#CC# / help
3y ago
❔ How to stop a script from another script?
C#CC# / help
3y ago
✅ how to write correct regex?
C#CC# / help
2y ago
✅ How to write this as a one liner?
C#CC# / help
17mo ago