Graphics

 View Only
  • 1.  Making a copy of a scene using the API

    Posted 08-29-2013 16:26
    Hi

    I have a reference scene, of which I wish to make a copy, and add that back into the project all using the API.

    Short of copying each animation controller and object, is there a better way? I ideally want the same funtionality as "Duplicate" in the scene manager on the GUI.

    Thanks

    Simon


  • 2.  RE: Making a copy of a scene using the API

    Posted 08-29-2013 20:29
    Hi Simon,

    Take a look at xpEngine.GetSceneCopyByName().. Although it sounds very similar to xpEngine.GetSceneByName it is different in that the scene copy it returns will actually be added to the project. This should do exactly what you are asking for.

    Brian

    #XPression


  • 3.  RE: Making a copy of a scene using the API

    Posted 08-30-2013 09:09
    Indeed it does!

    Thanks Brian.

    Simon

    #XPression