The semaphore-shape, which shows the problem, has two arms, “F1” =Arm1, “F2” = Arm2.
For each arm there are supplementary parts in the shape, as Blende, LBlende, Gewicht.
Blende are light-covers for the red/green/yellow lights.
LBlende are light-covers for the white lights at the backside of the semaphore
Gewicht are counterbalances for the arms (are showing as a hammer).
All parts of the shape are linked at the main-part “MAST”. There is no other hierarchy in the shape:
hierarchy ( 20 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 )
The difference between MSTS and OR is:
MSTS animate all Parts of the Arm1 and if is needed also all Parts of the Arm2.
OR animate only Part “F1” and if it is needed Part “LBlende2”.
“F1” and “LBlende2” are commanded by the sigcfg.dat:
SignalShape ( "kngerHP_0_2s.s" "F 2s (HP0/HP1/HP2)" SignalSubObjs ( 2 SignalSubObj ( 0 "F1" "Head 1" SigSubType ( SIGNAL_HEAD ) SigSubJnLinkIf ( 1 1 ) SigSubSType ( "HP_0_2_NormalS" ) ) SignalSubObj ( 1 "LBlende2" "Head 2" SigSubType ( SIGNAL_HEAD ) SigSubSType ( "HP_0_2_Info_VarS" ) )
Animation-Part of the shape:
animations ( 1 animation ( 2 30 anim_nodes ( 20 anim_node MAST ( controllers ( 0 ) ) anim_node F1 ( controllers ( 2 tcb_rot ( 3 tcb_key ( 0 0 0 0 1 0 0 0 0 0 ) tcb_key ( 1 0 0 -0.382683 0.92388 0 0 0 0 0 ) tcb_key ( 2 0 0 0 1 0 0 0 0 0 ) ) linear_pos ( 3 linear_key ( 0 0 8.0001 -0.18 ) linear_key ( 1 0 8.0001 -0.18 ) linear_key ( 2 0 8.0001 -0.18 ) ) ) ) anim_node BLENDE1 ( controllers ( 2 tcb_rot ( 3 tcb_key ( 0 0 0 0 1 0 0 0 0 0 ) tcb_key ( 1 0 0 -0.358368 0.93358 0 0 0 0 0 ) tcb_key ( 2 0 0 0 1 0 0 0 0 0 ) ) linear_pos ( 3 linear_key ( 0 0.088 7.75 -0.11 ) linear_key ( 1 0.088 7.75 -0.11 ) linear_key ( 2 0.088 7.75 -0.11 ) ) ) ) anim_node LBLENDE1 ( controllers ( 2 tcb_rot ( 3 tcb_key ( 0 0 0 0 1 0 0 0 0 0 ) tcb_key ( 1 0 0 -0.48481 0.87462 0 0 0 0 0 ) tcb_key ( 2 0 0 0 1 0 0 0 0 0 ) ) linear_pos ( 3 linear_key ( 0 0.17 7.7 0.104 ) linear_key ( 1 0.17 7.7 0.104 ) linear_key ( 2 0.17 7.7 0.104 ) ) ) ) anim_node GEWICHT ( controllers ( 2 tcb_rot ( 3 tcb_key ( 0 0 0 0.382683 0.92388 0 0 0 0 0 ) tcb_key ( 1 0 0 0 1 0 0 0 0 0 ) tcb_key ( 2 0 0 0.382683 0.92388 0 0 0 0 0 ) ) linear_pos ( 3 linear_key ( 0 0 8 -0.137499 ) linear_key ( 1 0 8 -0.137499 ) linear_key ( 2 0 8 -0.137499 ) ) ) ) anim_node GEWICHT2 ( controllers ( 2 tcb_rot ( 3 tcb_key ( 0 0 0 0 1 0 0 0 0 0 ) tcb_key ( 1 0 0 -0.382683 0.92388 0 0 0 0 0 ) tcb_key ( 2 0 0 0 1 0 0 0 0 0 ) ) linear_pos ( 3 linear_key ( 0 3.79367e-005 4.61 -0.175 ) linear_key ( 1 3.79367e-005 4.61 -0.175 ) linear_key ( 2 3.79367e-005 4.61 -0.175 ) ) ) ) anim_node LBLENDE2 ( controllers ( 2 tcb_rot ( 3 tcb_key ( 0 0 0 0 1 0 0 0 0 0 ) tcb_key ( 1 0 0 -0.48481 0.87462 0 0 0 0 0 ) tcb_key ( 2 0 0 0 1 0 0 0 0 0 ) ) linear_pos ( 3 linear_key ( 0 0.17 5.70004 0.104 ) linear_key ( 1 0.17 5.70004 0.104 ) linear_key ( 2 0.17 5.70004 0.104 ) ) ) ) anim_node F2 ( controllers ( 2 tcb_rot ( 3 tcb_key ( 0 0 0 0 1 0 0 0 0 0 ) tcb_key ( 1 0 0 0.382683 0.92388 0 0 0 0 0 ) tcb_key ( 2 0 0 0 1 0 0 0 0 0 ) ) linear_pos ( 3 linear_key ( 0 0 6 -0.18 ) linear_key ( 1 0 6 -0.18 ) linear_key ( 2 0 6 -0.18 ) ) ) ) anim_node BLENDE2 ( controllers ( 2 tcb_rot ( 3 tcb_key ( 0 0 0 0 1 0 0 0 0 0 ) tcb_key ( 1 0 0 -0.358368 0.93358 0 0 0 0 0 ) tcb_key ( 2 0 0 0 1 0 0 0 0 0 ) ) linear_pos ( 3 linear_key ( 0 0.088 5.75004 -0.11 ) linear_key ( 1 0.088 5.75004 -0.11 ) linear_key ( 2 0.088 5.75004 -0.11 ) ) ) ) anim_node LAMPEN2 ( controllers ( 0 ) ) anim_node PATRONEN ( controllers ( 0 ) )…………………
I have found the following Animation-Rule for MSTS.
MSTS animate with the Part “F1”, if there is no hierarchy given in the Shape, and also all other parts in the animation-block until the next, in the sigcfg.dat given name (here: “LBlende2”).
You can control this rule with the part “Gewicht2”, which is written in the animation-block before “LBlende2”!!! MSTS animate “Gewicht2” with arm “F1”, (what seems to be an error in this shape). With the part “LBlende2”, MSTS animate all following parts (“F2”, “Blende2”)
I don’t know if this is a regular animation-rule of MSTS, which is not implemented in OR until yet?
Regards
EugenR
Attached File(s)
-
CHSignaltest.zip (4.06MB)
Number of downloads: 219