This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

30 floors skyscraper on visu
#1
I need to create thirty pages, one for each floor of a skyscraper.

I'd like to use a vertical slider (1-30) in the homepage, next to the image and then, based on the floor selected, jump to the relative page (/apps/data/visu/#xxx). 

How could I do it?

Peppe
Reply
#2
You can do it like this, just create more ifs and put corect plan IDs
Code:
localbus.listen('object', '0/0/1', (value) => {
  if (value==0) {
    Visu.showPlan(7);
  }
   else if (value==1) {
    Visu.showPlan(17);
  }
  else {
    Visu.showPlan(13);
  }
});
------------------------------
Ctrl+F5
Reply
#3
(06.03.2026, 15:30)Daniel Wrote: You can do it like this, just create more ifs and put corect plan IDs
Code:
localbus.listen('object', '0/0/1', (value) => {
  if (value==0) {
    Visu.showPlan(7);
  }
   else if (value==1) {
    Visu.showPlan(17);
  }
  else {
    Visu.showPlan(13);
  }
});

That's perfect, but I would like to add a confirmation: showPlan not just when the object has a certain value, but when another object (boolean) is pressed.
Reply
#4
That can be done with an extra virtual object, press ok binary object with event based script and write the slider value to the virtual object that is attached to the grp.listen function.
Reply
#5
(06.03.2026, 20:29)Erwin van der Zwart Wrote: That can be done with an extra virtual object, press ok binary object with event based script and write the slider value to the virtual object that is attached to the grp.listen function.

ok, thanks

another question: is there a way in VISU to export a SINGLE plan, layout, widjet etc. so I can use them importing in a new project?
Reply
#6
In new upcoming version there will be option to export/import custom widgets but not plans/layouts yet.
------------------------------
Ctrl+F5
Reply
#7
Any solution relying on objects will only work for a single user, not if multiple users are connected to Visu at the same time.

Using a vertical slider for selecting plans might look nice but it's not a user-friendly solution. Using 3 custom widgets with plan links grouped by 10 per widget will be much easier and faster to navigate.
Reply


Forum Jump: