Question What if I deleted WindowsCamera during scene making accidently, is there a way to add it again?

GodOfThunder

Member
Messages
8
Reactions
71
Points
13
I accidently deleted WindowsCamera attom during making scene..
I really don't want to make the scene again, so is there a way to add windownscamera again?
 
You could copy and paste the WindowCamera atom from another scene's JSON. In the JSON you'll have something like this:

Code:
{
  ... some stuff ...
  "atoms": [
    { this is an atom },
    { this is another atom }
  ]
}

with line breaks. After the [ character, you can add:

Code:
         "id" : "WindowCamera",
         "on" : "true",
         "type" : "WindowCamera",
         "position" : {
            "x" : "0.351",
            "y" : "1.831",
            "z" : "0.155"
         },
         "rotation" : {
            "x" : "0",
            "y" : "0",
            "z" : "0"
         },
         "containerPosition" : {
            "x" : "0.351",
            "y" : "1.831",
            "z" : "0.155"
         },
         "containerRotation" : {
            "x" : "0",
            "y" : "0",
            "z" : "0"
         },
         "storables" : [
            {
               "id" : "CollisionTrigger",
               "trigger" : {
                  "startActions" : [
                  ],
                  "transitionActions" : [
                  ],
                  "endActions" : [
                  ]
               }
            },
            {
               "id" : "PluginManager",
               "plugins" : {
               }
            },
            {
               "id" : "control",
               "position" : {
                  "x" : "0.351",
                  "y" : "1.831",
                  "z" : "0.155"
               },
               "rotation" : {
                  "x" : "0",
                  "y" : "0",
                  "z" : "0"
               }
            },
            {
               "id" : "DisplayControl",
               "position" : {
                  "x" : "0.51",
                  "y" : "1.831",
                  "z" : "0.155"
               },
               "rotation" : {
                  "x" : "0",
                  "y" : "0",
                  "z" : "0"
               },
               "linkTo" : "WindowCamera:control"
            }
         ]
      },

Note that theres a comma between each atom in the array, but not in the end (something like [{}, {}, {}])

Hope that helps :)
 
Upvote 0
You could copy and paste the WindowCamera atom from another scene's JSON. In the JSON you'll have something like this:

Code:
{
  ... some stuff ...
  "atoms": [
    { this is an atom },
    { this is another atom }
  ]
}

with line breaks. After the [ character, you can add:

Code:
         "id" : "WindowCamera",
         "on" : "true",
         "type" : "WindowCamera",
         "position" : {
            "x" : "0.351",
            "y" : "1.831",
            "z" : "0.155"
         },
         "rotation" : {
            "x" : "0",
            "y" : "0",
            "z" : "0"
         },
         "containerPosition" : {
            "x" : "0.351",
            "y" : "1.831",
            "z" : "0.155"
         },
         "containerRotation" : {
            "x" : "0",
            "y" : "0",
            "z" : "0"
         },
         "storables" : [
            {
               "id" : "CollisionTrigger",
               "trigger" : {
                  "startActions" : [
                  ],
                  "transitionActions" : [
                  ],
                  "endActions" : [
                  ]
               }
            },
            {
               "id" : "PluginManager",
               "plugins" : {
               }
            },
            {
               "id" : "control",
               "position" : {
                  "x" : "0.351",
                  "y" : "1.831",
                  "z" : "0.155"
               },
               "rotation" : {
                  "x" : "0",
                  "y" : "0",
                  "z" : "0"
               }
            },
            {
               "id" : "DisplayControl",
               "position" : {
                  "x" : "0.51",
                  "y" : "1.831",
                  "z" : "0.155"
               },
               "rotation" : {
                  "x" : "0",
                  "y" : "0",
                  "z" : "0"
               },
               "linkTo" : "WindowCamera:control"
            }
         ]
      },

Note that theres a comma between each atom in the array, but not in the end (something like [{}, {}, {}])

Hope that helps :)

Thanks a lot! I will try!!
 
Upvote 0
The other option is to start with a new scene and delete everything except the window camera. Then merge load the scene that's missing the camera and resave it.
 
Upvote 0
Back
Top Bottom