• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. 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.

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