I am looking for a way to replace line 5 and line 7 in many documents inside of a directory. Line 5's offset and line 7's value are different for each of these documents, however, I need them to always be set to 0. This means line 5 should look like "color_stream_offset": 0," in all the documents and line 7 should look like "flags": 0," inside all of the documents.
I've attempted usage at SED, Notepad++ and none of them seem to be helpful. Each one of these documents has differences so I cannot just copy the file.
This is one of the many documents that needs replacing:
{
"data": {
"mesh": {
"color_stream_count": 0,
"color_stream_offset": 105920,
"cull_distance": 1.0000000150474662e+30,
"flags": 136,
"lightmap_motifs": [
0,
0,
0,
0
],
"lightmap_names": [],
"lightmap_offsets": [
0,
0,
0,
0
],
"mesh_name": "gomcbldf_00",
"mesh_offset": 18172,
"py/object": "lib.init_classes.Mesh",
"tint": {
"dimensions": 3,
"py/object": "lib.ma_util.Vector",
"x": 1.0,
"y": 1.0,
"z": 1.0
}
},
"offset": 989012
},
"py/object": "lib.init_classes.ShapeData",
"shape_type": "FWORLD_SHAPETYPE_MESH"
}
