220hotwheels Geschrieben Samstag um 17:06 Uhr Geschrieben Samstag um 17:06 Uhr Hi In my present layout I am utilising, amongst others, model Fire Engine ladders 18 (by seehund). Whilst I can set each of the components manually to achieve the correct position for each component I cannot find out how to do this in my EV. Setting the out outriggers (stuetzen) is easy enough but I also need to set the following to specific points Drehen to 0.65, Neigung to 0.2 and ausfahren to 0.2. This then allows for everything to look right in the layout, see attached screenshot. I have attached a test layout for the purpose of getting this right but thus far without any success. If anyone can point me in the right direction I would be most appreciative. Kind regards Pete Fire engine test layout.mbp
220hotwheels Geschrieben vor 23 Stunden Autor Geschrieben vor 23 Stunden following on from my initial request and in an effort to clarify the issue. In properties for this model I need to be able to set Neigung to a 0.2 limit in forward motion, Drehen to 0.65 in forward motion and ausfahren to 0.2 also in forward motion. In the reverse operation all 3 need to reset to 0. Clearly this can be done in the properties window but I need to be able to make this happen via my EV and as yet cannot see how this can be done. I feel it must be possible otherwise what is the point of having these elements move in the first place, setting them manually rather defeats the object somewhat. All suggestions will be gratefully received Pete
prinz Geschrieben vor 5 Stunden Geschrieben vor 5 Stunden @220hotwheels, You can do this in EV, but not with a block action. Only directly in Lua you can specify the limits. Don't be afraid about Lua. You only need a Skript-block element in Lua with the desired action. E.g.: $("YY104 ERY Fire engine ").animations["Drehen"]:play(0, 1, 0, 0.65) The syntax is: $("Objectname") -- is the object for the actions . -- means, next follows a property of the object animations -- the property animation is requestet ["Drehen"] -- the "Drehen"-animation is requestet : -- introduce an action request play -- play the animation with max. 5 parameters (here 4: (0, 1, 0, 0.65) ) - parameter 1 = start position with 0 (=start), 1 (=end) or -1 (=actual) - parameter 2 = direction. 1 = forward, -1 = backward - parameter 3 = start position (between 0 and 0.9) - parameter 4 = end position (between start position and 1) - parameter 5 = tempo (1 = standard, e.g. 0.5 = half, 2=double) To play the animations back to start position, you can use the normal animation-block in EV. Here is the modified test layout: Fire engine test layout2.mbp Nice day Wolfgang
220hotwheels Geschrieben vor 4 Stunden Autor Geschrieben vor 4 Stunden 1 hour ago, prinz said: 220hotwheels, You can do this in EV, but not with a block action. Only directly in Lua you can specify the limits. Don't be afraid about Lua. You only need a Skript-block element in Lua with the desired action. E.g.: $("YY104 ERY Fire engine ").animations["Drehen"]:play(0, 1, 0, 0.65) The syntax is: $("Objectname") -- is the object for the actions . -- means, next follows a property of the object animations -- the property animation is requestet ["Drehen"] -- the "Drehen"-animation is requestet : -- introduce an action request play -- play the animation with max. 5 parameters (here 4: (0, 1, 0, 0.65) ) - parameter 1 = start position with 0 (=start), 1 (=end) or -1 (=actual) - parameter 2 = direction. 1 = forward, -1 = backward - parameter 3 = start position (between 0 and 0.9) - parameter 4 = end position (between start position and 1) - parameter 5 = tempo (1 = standard, e.g. 0.5 = half, 2=double) To play the animations back to start position, you can use the normal animation-block in EV. Here is the modified test layout: Fire engine test layout2.mbp 5.53 kB · 2 downloads Nice day Wolfgang Hi Wolfgang Very many thanks for taking the trouble to provide me with a solution to my problem. It really is brilliant. Clearly the key is knowing, understanding and being able to execute Lua, something that I have no real understanding of. One element that I would like to change in your demo is the direction of rotation of the turntable owing to the fact that in my layout there are some old garages to the left of the fire engine so if this were to turn in the opposite direction it would miss these. All of that said I should also mention that a very good friend of mine has also provided me with a solution which also works perfectly and takes account of the garages. So now I have 2 solutions, both of which offer a different approach but nevertheless each has opened my eyes to alternative possibilities which will not only come in handy with this layout but will also help me greatly with other scenarios by enlarging my knowledge of how to approach certain problems, so once again very many thanks. Kind regards Pete
prinz Geschrieben vor 3 Stunden Geschrieben vor 3 Stunden (bearbeitet) Hi Pete, to save the old garages and change the direction of the turntable, you have to change the Skript for "Drehen": $("YY104 ERY Fire engine ").animations["Drehen"]:play(1, -1, 0.65, 1) The animation starts at position 1. Circular animations have for 0 and 1 normally the same position. The animation should be executed backwards (-1) The minimal position (!) is here 0.65 and the maximal position (!) is 1. So the parameter description of my first answer was not correct, because parameter 3 and 4 are not start- and endposition, but minimal and maximal value for the animation. To bring the turntable to its initial position the animation (in EV-Block) has now start position actual, direction forward. Here is the modified layout: Fire engine test layout2.mbp Nice day Wolfgang Bearbeitet vor 3 Stunden von prinz correction of parameter 3 and 4
220hotwheels Geschrieben vor 2 Stunden Autor Geschrieben vor 2 Stunden 52 minutes ago, prinz said: Hi Pete, to save the old garages and change the direction of the turntable, you have to change the Skript for "Drehen": $("YY104 ERY Fire engine ").animations["Drehen"]:play(1, -1, 0.65, 1) The animation starts at position 1. Circular animations have for 0 and 1 normally the same position. The animation should be executed backwards (-1) The minimal position (!) is here 0.65 and the maximal position (!) is 1. So the parameter description of my first answer was not correct, because parameter 3 and 4 are not start- and endposition, but minimal and maximal value for the animation. To bring the turntable to its initial position the animation (in EV-Block) has now start position actual, direction forward. Here is the modified layout: Fire engine test layout2.mbp 5.53 kB · 1 download Nice day Wolfgang Thanks Wolfgang. I did ponder on just what I might need to change but as I was unsure I didn't want to make a mess of things. Now I can add yet more information to the old memory banks. Kind regards Pete
Empfohlene Beiträge
Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren
Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können
Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen.
Neues Benutzerkonto erstellenAnmelden
Du hast bereits ein Benutzerkonto? Melde dich hier an.
Jetzt anmelden