Graphics

 View Only
  • 1.  Save KF in AnimController

    Posted 10-18-2012 10:33
    Hi,

    I would like to create by API some tracks in my SceneDirector (method don't exist I think), add an animcontroller on each (it works) and set keyframes in it (it also works).

    After all this, I want to save my project (with KF, tracks and animcontroller).

    It appears that KF are not saved in the animcontroller.

    Any idea ?

    Thank you.


  • 2.  RE: Save KF in AnimController

    Posted 12-04-2012 11:24
    Hi Vincent,

    The reason why this is happening is because most likely you're working with copies of your scene. So at runtime you're working on a virtual scene which you have created when running your program.

    If you want to resolve this, you need to indicate that you do not want to use a copy of your scene.

    So when you setup your scene in your code, there is a third option which creates your scene as a copy.

    I don't know which language you're using but in VB it's something like this:

    engine.getscenebyname ("Scenename", XPScene, false)

    The false in the above line of code indicates that you don't want a copy created of this scene.

    Now when you set KF's on your animation controllers, you will actually see them appear directly in Xpression.

    This also means that when you save your project, the KF's get saved along with it.

    It's also a great way for debugging.

    Best regards,

    Kenneth

    #XPression


  • 3.  RE: Save KF in AnimController

    Posted 12-04-2012 23:00
    Mode copy were at false...

    #XPression