State change button next and previous

Q&A about the latest versions
Post Reply
ggibbon
Posts: 68
Joined: Fri Aug 01, 2014 1:02 pm

Mon Jul 27, 2015 12:56 pm

Hi

Is there a simple way to create next and preious button for State Changes in Object2vr
with button stacking.
In Pano2vr you can use the data fields.

Thanks
Greg
User avatar
Hopki
Gnome
Posts: 10340
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Mon Jul 27, 2015 5:47 pm

Hi Greg,
Object2VR has the action Change Viewstate and then you select a state to show.
So with stacking buttons you can do this, below is a table of four buttons, each will have a change view state action changing to its relevant state. So in the example button 0 will change to state 0, button 1, to state 1 etc.

button 0 = visible
button 1 = hide
button 2= hide
button 3 = hide

button 0 will have an action to hide self and show button 1. Button 1 with have a similar action but showing button 2 and so on.
Button 3 with have hide self show button 0 to start again.

OK not next an previous but will just toggle around.

HOWEVER:
You can make a next and previous buttons but then it gets a bit more tricky.
The simplest way is to have the buttons slide up ab down in a masking container using a set element position.
In the attached skin I have use a change position so you can see what is going on.
Regards,
Hopki
Attachments
skin.ggsk
(920 Bytes) Downloaded 107 times
Hopki
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
ggibbon
Posts: 68
Joined: Fri Aug 01, 2014 1:02 pm

Fri Aug 21, 2015 5:56 pm

Great!

Thanks for that information Hopki

Greg
Post Reply