Bug: timeline view slightly alters and breaks json

Got a bug for you:

  1. Paste a valid json file in the studio json view, and have it contain:
    "background": "#{{COLOR}}"

  2. Render the file. The render is correct.

  3. Click from json view to timeline view.

  4. "background": "#{{COLOR}}" will mutate to "background": "{{#COLOR}}", which then breaks the merge field.

Nice find. @Umut one for you to take a look at.

Hey @drfalken!

Thanks for this, although I’m not able to reproduce it.
Switching back and forth between the json and timeline views works fine for me.

Here’s my JSON

{
    "timeline": {
        "soundtrack": {
            "src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/music/freepd/motions.mp3",
            "effect": "fadeOut"
        },
        "background": "#{{COLOR}}",
        "tracks": [
            {
                "clips": [
                    {
                        "asset": {
                            "type": "video",
                            "src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/footage/earth.mp4",
                            "trim": 5
                        },
                        "start": 0,
                        "length": 15,
                        "transition": {
                            "in": "fade",
                            "out": "fade"
                        },
                        "offset": {
                            "x": 0,
                            "y": 0
                        },
                        "position": "center"
                    }
                ]
            }
        ]
    },
    "output": {
        "format": "mp4",
        "size": {
            "width": 1280,
            "height": 720
        }
    },
    "merge": [
        {
            "find": "COLOR",
            "replace": "000000"
        }
    ]
}

Got it - let me see if I can duplicate again and I’ll post again!

1 Like

output.json (139.2 KB)

Here’s a big long example that does break for me!

Hey mate, thanks for this. Just getting back in to it from the easter/ weekend.

Will check this out today and get back to you asap!

1 Like