• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

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

GodOfThunder

Member
Joined
Aug 3, 2021
Messages
8
Reactions
73
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