Gregi Posted April 2, 2020 Share Posted April 2, 2020 Hello everybody Im trying to create a list of an input node which is able to do some simple math, but i get errors from the float. Without math its working. How do i do this? Math and Float a List.vwx Quote Link to comment
MRoth Posted April 2, 2020 Share Posted April 2, 2020 What exactly should be the output? That you get an error here makes sense, because '390+10' is a string and therefore could not be converted. You would have to separate the numbers, then convert and add them. Or you simply use a function-node with the function eval(x). Was genau sollte den der Output sein? Dass du hier einen Fehler erhälst, macht Sinn, da '390+10' ein String ist und folglich nich umgewandelt werden könnte. Du müsstest die Zahlen trennen, umwandeln und addieren. Oder du brauchst einfach ein Function-Node mit der Funktion eval(x). Quote Link to comment
Gregi Posted April 3, 2020 Author Share Posted April 3, 2020 The output in this example should be a List, [0] = 400.0 [1] = 800.0 as far as i know i get the numbers separatet in the "split" node (still string) and then they are converted to numbers in the "float" node. it works, but as soon as i put some math in one of the numbers, i got the error. Best thing would be to have a dim-number in the end, but its not the most important. Quote Link to comment
MRoth Posted April 3, 2020 Share Posted April 3, 2020 10 hours ago, MRoth said: Or you simply use a function-node with the function eval(x). In this case, that should work. Just replace the float-node by the function-node Quote Link to comment
Gregi Posted April 3, 2020 Author Share Posted April 3, 2020 Great, now i got it 🙂 Thank you! Quote Link to comment
MRoth Posted April 3, 2020 Share Posted April 3, 2020 Gern geschehen. Das nächste Mal auch gerne im deutschen Forum. Dort gehen keine Infos wegen den Übersetzungen verloren. 😊 You're welcome. Next time also gladly in the German forum. No information will be lost there because of the translations. Quote Link to comment
m.graf Posted April 6, 2020 Share Posted April 6, 2020 Hallo MRoth, hab ich was verpasst - wo gibt es ein deutschsprachiges Marionette Forum. M.Graf Quote Link to comment
MRoth Posted April 6, 2020 Share Posted April 6, 2020 Hier ☺️Wenn etwas betreffend Marionette kommt, wird es meistens von @herbieherb, @KroVex oder mir beantwortet. Läuft aber nicht so viel. Eine separate Kategorie gibt es leider (noch) nicht. Here. If something comes concerning Marionette, it is usually answered by @herbieherb, @KroVex or me. Unfortunately there is no separate category (yet). 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.