You are not logged in.

1

Thursday, February 11th 2016, 4:21pm

x.mobile or y.mobile code

This code is working: (v. 1.19. pr 3)

Source code

1
 x.mobile="5" y.mobile="0" 


But, this code is not work:

Source code

1
set(layer[layername].x.mobile, 5)


How to write this code?

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Thursday, February 11th 2016, 7:03pm

Hi,

then you do

Source code

1
if(device.mobile, set(layer[layername].x, 5));


Hope it helps
Tuur *thumbsup*