Graphics

 View Only
  • 1.  LoadProject, CloseProject and API

    Posted 08-05-2012 11:22
    Hi everyone, it's me again ;)

    To Xpression developer team... Actually, when we load a project with API, if we close our app, it will unload the project and clear framebuffers.

    I think it would be preferable that the project stay open even if app is closed (manually or crash) and only CloseProject() can unload project and clear FB.

    Other point, if a project is already opened, when we call LoadProject(), Xpression reload the project (so FB are cleared).

    What would be nice is that if "project.xpf" is loaded and we do LoadProject("project.xpf"), Xpression do nothing, only wait a new command.

    Thank you for all,

    Vinz


  • 2.  RE: LoadProject, CloseProject and API

    Posted 08-06-2012 08:03
    Hi Vincent,

    You can check yourself if the project has already been loaded and then decide to load the project (or not).

    if not (xpEngine.ProjectFileName = "C:ProjectPathYourProject.xpf") then xpEngine.LoadProject("C:ProjectPathYourProject.xpf")

    Good luck!

    Gerard

    #XPression


  • 3.  RE: LoadProject, CloseProject and API

    Posted 08-06-2012 08:45
    Hello Vincent, XPression and an external controlling application are considered to be absolutely independent, though the both do use the same com object. It is only your responsibility of how you use the API of XPression.

    Closing a controlling application should NOT clear framebuffers. If it does, please search for reasons in your application or use the fabulous Ross techsupport.

    Also, there do exist means of how to check if a project is already loaded. For instance, you may want to use xpEngine.ProjectFileName property.

    Best regards and good luck ;)

    #XPression


  • 4.  RE: LoadProject, CloseProject and API

    Posted 08-10-2012 08:31
    Hello,

    [QUOTE]if not (xpEngine.ProjectFileName = "C:ProjectPathYourProject.xpf") then xpEngine.LoadProject("C:ProjectPathYourProject.xpf") works great...

    But My FB are cleared, but I think it's due to copy mode...

    #XPression


  • 5.  RE: LoadProject, CloseProject and API

    Posted 08-20-2012 20:38
    If you use GetSceneByName and get a copy of a scene to put online, this will be cleared when your application exits. This is because your application owns the copy of the scene and it will be free'd if your application terminates. If you use your API application to put Take Items from the Sequencer on air; or if you use GetSceneByName and pass False for the AsCopy parameter, then these should not be cleared when your application exits.

    #XPression