January 12, 2017 at 7:10 PM #1 Hi,I'm trying to change the depth on hotspots conditionally based on whether the device is mobile or desktop.For mobile devices, I want a depth of 1000. The depth varies on desktops.I've tried Code <hotstpot name="test" ... depth="if(device.mobile, 1000, 1800)" /> to no avail. Can anyone point out my issue?
January 13, 2017 at 8:50 AM #2 Hi,'calc:' with a ternary operator could be used:https://krpano.com/docu/xml/#xmlcalchttps://krpano.com/docu/actions/#expressionsE.g. Code depth="calc:device.mobile ? 1000 : 1800" or depth defined this way: Code depth.mobile="1000" depth.normal="1800" Best regards,Klaus