Code doesn't work

Hi, got invited to the new watchmaker studio.

But can’t seem to get code’s to work.

Like here:

The tail and ballons for the batt. to move, I got code to the size.
It works, but when I save, the codes are gone!!

At the mobile app the code will be stored.

Can you let me know what code you were trying

Tail

150-(math.sin({drss}*2)*50)

Left baloons

‘{pbc}’ == ‘Charging’ and 150-(math.sin({drss}*1)*50) or {pbl} >= 90 and 200 or {pbl} >= 70 and 150 or {pbl} >= 50 and 100 or {pbl} >= 30 and 80 or {pbl} >= 10 and 40 or 20

you are using lua expressions
as lua is no longer supported by google, we have switched to simpler javascript expressions
e.g.
{dh24} < 11 ? ‘Morning’ : {dh24} < 15 ? ‘Noon’ : ‘Evening’{dh24} < 11 ? ‘Morning’ : {dh24} < 15 ? ‘Noon’ : ‘Evening’

Still doesn work with java. (did convert with gemini (pro)
Now codes are:

Tail
150 - (Math.sin({drss} * 2) * 50)

Left baloons
‘{pbc}’ === ‘Charging’
? 150 - (Math.sin({drss} * 1) * 50)
: {pbl} >= 90 ? 200
: {pbl} >= 70 ? 150
: {pbl} >= 50 ? 100
: {pbl} >= 30 ? 80
: {pbl} >= 10 ? 40
: 20;

After saving the preview is working oke.
but code’s are gone at hight for instance.

see and try yourself:

For the good working (old code version) this don’t look good in preview

Or did still got wrong java coding?

thanks for the report - will investigate this fully on monday

thanks for reporting the bugs - we have made some fixed to WatchMaker Studio - could you give it another try?

Hmm sorry doesn’t work.
At the Tail hight

150 - (sin([drss] * 2) * 50)

for as I know the tail is jumping.

But to bad it doesn’t work.

put in code at hight of the picture, tail is still not moving

After this, the tail must be jumping.
But nothing happens, relogin, and at the Hight it say “NaN”

is the bug in watchmaker studio or when you transfer to watch?

no tranfer to watch… just save and code is gone ( it say NaN)

No problem it’s a bug.. will wait for update :wink:

Keep up the good work