Switch button Script

772
2
Jump to solution
04-05-2013 04:20 AM
LukeCzar
New Contributor III
Hi Matthias,

I am trying to create 3 maps with 3 different dates, as I would switch the years I would like to make those maps to change, It looks like the script  they used in "Paris" where changing the years was changing the facades of the buildings.
I am not a programmist so I have no idea how to create it, I started with something like that:

@Range (1,3)
attr Map = 1


Lot--> Map
      case Map == 1 i("1.png")
      case Map == 2 i("2.png")
      case Map == 3 i("3.png")

Is it possible to have the Switch Button in Web Scene? like the one with a Time->shadows



Lukasz
0 Kudos
1 Solution

Accepted Solutions
MatthiasBuehler1
Frequent Contributor
Hi,

In CGA, this is possible, but when you export this to a WebScene, you must export 3 models for the 3 states. Best of course in 3 different layers, so you can activate only 1 at a time.

M.

View solution in original post

0 Kudos
2 Replies
MatthiasBuehler1
Frequent Contributor
Hi,

In CGA, this is possible, but when you export this to a WebScene, you must export 3 models for the 3 states. Best of course in 3 different layers, so you can activate only 1 at a time.

M.
0 Kudos
LukeCzar
New Contributor III
I was considering that,

Thanks!!!!


Lukasz
0 Kudos