Home Technical Talk

maya- merge 2 files with the same group structure

mod
Offline / Send Message
rooster mod
not sure if this is easy or I'm going to need some kind of script-
basically I have 2 maya files, each with a group/parent structure set up with identical groups and naming, and each group has various objects underneath them.

I want to merge the files, so if both files have a group 'bolts' and underneath that lots of objects, then I want the objects from file 1 to be moved into file 2 under 'bolts', with any naming conflicts resolved via numbering the object names.

what you think folks? does that need mel scripting?

Replies

  • rooster
    Offline / Send Message
    rooster mod
    hmmm.. this is either stupidly obvious or pretty tricky I'm thinking :)
    all my previous experience with stuff like namespaces renames absolutely everything with the same name
  • MoP
    Offline / Send Message
    MoP polycounter lvl 18
    Can't you just import the 2nd scene into a namespace in the first scene, then middle-click and drag the contents of each named group in the 2nd scene into the matching group first scene?

    This should be quite fast if you have only a few groups, if you have lots then you'd want a MEL for it.

    It's easy to strip namespaces from things if you need to do that. Maya will automatically deal with the name clashes when you drag the same named objects into the other group.
Sign In or Register to comment.