Anim8or Community

General Category => General Anim8or Forum => Topic started by: CoriDavis on October 20, 2010, 05:59:15 pm

Title: is there ANY way to get rid of "missing objects"?
Post by: CoriDavis on October 20, 2010, 05:59:15 pm
This is getting really annoying, first there were only 50-something because I imported the skeleton from the cursed horse, but now there's 115!  I imported again so I could make another character! is there any way possible to make it stop giving me that notification?
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: lynn22 on October 21, 2010, 03:49:25 am
Yes, clean up your file.
First make a backup in case something goes wrong.
Then in Scene mode, wireframe, any view where you see everything, click on each item in the list left of the timeline and if nothing is highlighted in your scene > Edit > delete element.
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: CoriDavis on October 21, 2010, 03:47:40 pm
Yeah, but that wouldn't work, the objects aren't there because when I imported the figure/skeleton from the cursed horse, I told it not to import the massive number of objects that were attached to it.  now it says they're missing, and I can't get rid of them.
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: lynn22 on October 21, 2010, 04:31:25 pm
Then you will have to backup one step.
Save the file (A) that you want to import under a new name and clean out everything that you don't want to import in the other file (B), then import.
You may have to delete all previous imports which show missing objects in file (B) first before importing the cleaned up file, or start file (B) from scratch.
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: CoriDavis on October 21, 2010, 06:12:02 pm
aww man... I don't want to start over.. it took me forever on the weight painting
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: Raxx on October 22, 2010, 03:02:46 am

The alternative is to open the .an8 file in notepad and delete them manually.

In the figure code block there are namedobject blocks. Just delete each of the namedobject blocks that don't belong
Code: [Select]

figure { "figure01"
  bone { "root"
    length { 10 }
    bone { "bone01"
      length { 32.071 }
      namedobject { "object01"
        name { "namedobject01" }
        material { " -- default --" }
      }
      namedobject { "object01"
        name { "namedobject02" }
        base {
          origin { (33.04 0.73421 0) }
        }
        material { " -- default --" }
      }
      bone { "bone02"
        length { 23.822 }
        namedobject { "object02"
          name { "namedobject03" }
          base {
            origin { (28.341 12.628 0) }
          }
          material { " -- default --" }
        }
      }
    }
  }
}

Say we don't want namedobject01 that's attached to bone01, delete that block:

Code: [Select]

figure { "figure01"
  bone { "root"
    length { 10 }
    bone { "bone01"
      length { 32.071 }
      namedobject { "object01"
        name { "namedobject02" }
        base {
          origin { (33.04 0.73421 0) }
        }
        material { " -- default --" }
      }
      bone { "bone02"
        length { 23.822 }
        namedobject { "object02"
          name { "namedobject03" }
          base {
            origin { (28.341 12.628 0) }
          }
          material { " -- default --" }
        }
      }
    }
  }
}
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: CoriDavis on October 25, 2010, 03:30:47 pm
oooh! the text one seems MUCH easier than the sphere, and it won't involve me starting over, i'll do it that way, thanks. I really hope it works!  So I go to the file and right click> open with> notepad, i'm guessing?

----
Ok, it didn't work. it says 172 missing items, and I tried getting rid of the "namedobject" part

Started with-
            bone { "Spine 2"
              length { 45 }
              orientation { (-0.10376 0 0 -0.99460) }
              dof { "X" -10  0 10  }
              influence { 0.25000 6.75 18 0.75000 6.75 18}
              namedobject { "Vertebrae"
                name { "namedobject14" }
                base {
                  origin { (0 -0.46032 -1.9164) }
                  orientation { (0.68835 0 0 0.72537) }

took out-
            bone { "Spine 2"
              length { 45 }
              orientation { (-0.10376 0 0 -0.99460) }
              dof { "X" -10  0 10  }
              influence { 0.25000 6.75 18 0.75000 6.75 18}
              namedobject { "Vertebrae"
                name { "namedobject14" }                base {
                  origin { (0 -0.46032 -1.9164) }
                  orientation { (0.68835 0 0 0.72537) }

Saved and opened file, still says 172 missing items.  So I figured, maybe there was a typo and I was supposed to take out the whole
              namedobject { "Vertebrae"
                name { "namedobject14" }

which crashed my file so I had to copy and rename my backup to reset it.
Now what?
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: Raxx on October 25, 2010, 06:46:01 pm
Go from namedobject {"vertebrae to its closing } several lines down. That bracket should be on the same horizontal location as the start of "namedobject" and be right before the next "namedobject"

Example of two namedobject blocks sitting on top of each other (delete one or the other, up to the ending bracket for whatever block you want to delete):

      namedobject { "object01"
        name { "namedobject01" }
        material { " -- default --" }
      }
      namedobject { "object01"
        name { "namedobject02" }
        base {
          origin { (33.04 0.73421 0) }
        }
        material { " -- default --" }
      }
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: CoriDavis on October 25, 2010, 07:02:49 pm
oooh, ok! so I delete all of the text from "namedobject { "object01" to the end?
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: Raxx on October 25, 2010, 07:10:13 pm
Just to make sure we're clear:
      |----Lines up vertically
      namedobject { "object01" <-Starting point of the unwanted object
      | name { "namedobject02" }
      | base {
      |   origin { (33.04 0.73421 0) }
      | }
      | material { " -- default --" }
      } <-Ending point of the unwanted object
      |----Lines up vertically
Delete all of that block in order to remove the object from your figure. Then move on to the next unwanted object's block.
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: CoriDavis on October 25, 2010, 07:20:33 pm
ok, i'll double check it again. i'll try this again to make sure it's perfectly right because apparently it wasn't when I tried it last time, it crashed again

--- Ok, so I got rid of that. it didn't crash, but it still says there's 172 missing objects. it's not going away
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: Raxx on October 25, 2010, 07:44:53 pm
Eh, email me the file and tell me what objects on the figure you wish to keep...
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: CoriDavis on October 25, 2010, 07:55:59 pm
ok, i'll do that
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: CoriDavis on October 28, 2010, 05:45:37 pm
Ok, so I sort of ended up importing the objects instead of the figure to make all my characters.  Is there a way to use the text thing to maybe copy and make the new figures without having to do all the crazy weight painting again?
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: Raxx on October 28, 2010, 07:04:59 pm
Yes...in theory :P If you do modify any of the new copies so that it's different from the original then that could screw up the vertex order and make the vertex weights go all over the place or just plain make it not read. But if all you did was move points around or change textures, then it should be alright (maybe).

Probably a bit too complicated to explain what you have to do...basically you copy the entire figure block and paste it again underneath it, and change the name of the namedobject to the new object's name (and change the new figure's name too).
Title: Re: is there ANY way to get rid of "missing objects"?
Post by: CoriDavis on October 28, 2010, 08:16:25 pm
hmm, hopefully i'll get it better than the other part.  and yeah, all I did was change textures and colors, I didn't move a single point around.