Problem mit Animationen (gelöst, solved)

Das Forum befindet sich im reduzierten Betrieb. Die Addon- und Supportforen bleiben weiterhin verfügbar.
Bitte beachte, dass OMSI nicht mehr weiterentwickelt wird. Ein Teil der Entwickler widmet sich inzwischen der Entwicklung eines neuen Simulators. Weitere Informationen zum LOTUS-Simulator findest Du hier.
Ein communitybetriebenes Nachfolge-Forum wird hier verlinkt, sobald es gegründet und bereit ist.
  • Hallo,


    Ich versuche ein kleines Mod im MB O305 zu machen. Ich habe einen neuen Schalthebelgriff gemacht und den Mesch getauscht.


    Der Problem ist jezt, daß der neue Griff sich ja dreht, wenn mann wechselt, aber bewegt sich nicht mit dem Hebel. Wo ist das Problem?



    Ich glaube, daß die Bilder mehr erzählen als ein Tausend Wörter:





    Hier is der Kode, ich habe nur den Mesch getauscht:




    Ich habe kein Manual gefunden, wo es steht, was diese "origin_from_mesh" usw unten "newanim" meinen.



    -Welbus

  • the easiest way to obtain a clean animation is to use "animparent" and "mesh_ident" to link two animations together. this is a feature that will work only in omsi2, so if you use omsi 1, you have to define the animation origin to the same point as the lever itself.


    for omsi 2, something like this should work:



    the order of the [mesh] tags is important; you can only link to a mesh via animparent if the sourcemesh is defined earlier in the model.cfg.

  • Thanks a lot Chrizzly92 for your help! It does work now.


    I forgot to mention that this is about Omsi2. For some reason the original code works without this change.
    Perhaps it requires to put the knob exactly in the same place with the stick, whichs is of course impossible, because i cannot know
    the precise coordinates of that object.


    -Welbus

  • you can define the origin of the animation via origin_trans in the animation itself. you could have aligned your object origin to the same point as the lever itself, so that the rotation point is exactly the same. the animparent and meshideant feature is the better solution though, because you don't need a dedicated animation fpr your mesh because you link it to the mesh it should stick to.


    nevertheless, no problem for helping.