Page 1 of 1

state drag block

Posted: Fri Jan 05, 2024 10:11 am
by Owen ki
Hi, there

I would like to ask if it is possible to set a pan limit for only one state ? ( there are 4 states in my project)

And it has to be able to click hotspot.

Thx..

Re: state drag block

Posted: Fri Jan 05, 2024 12:05 pm
by Hopki
Hi Owen,
Each state will use the same number of columns as the others.
What's your use case?
Regards,

Re: state drag block

Posted: Tue Jan 09, 2024 4:00 am
by Owen ki
HI,

This is the light table of my project

What i try to do is that I want to block drag (pan and tilt ) when I enter state 3. And it has to be able to click on the hot spot.

The state of 0,1,2 does not matter.

THX

Re: state drag block

Posted: Tue Jan 16, 2024 6:16 am
by Owen ki
Any idea..?

Re: state drag block

Posted: Tue Jan 16, 2024 1:10 pm
by Hopki
Hi Owen,
I am sorry but I do not understand what you want to do.
States all use the same number of columns.

So if you are in state 0, when should you see when you enter start 1?
Regards,

Re: state drag block

Posted: Wed Jan 17, 2024 1:31 am
by Owen ki
Hi,

What I want is to be able to limit the movement of drag only in a state 3

and it has to be able to click hotspots.

Thanks.

Re: state drag block

Posted: Wed Jan 17, 2024 6:13 pm
by Hopki
If you remove images from a state it will reuse the remaining images, so as you rotate state 2 it will be like seeing a delay but it's reusing the last image for the columns with images missing.
But we would like to know more about what it is you expect to happen, and what would be the user experience.
For example, if states 0 and 1 had 36 columns and state 2 had 16, what would happen when switching states if you are on column 30?
While looking at the problem you can use a logic block in Object2VR 4 so when state 2 is selected it opens in the default view.
Regards,

Re: state drag block

Posted: Thu Jan 18, 2024 1:43 am
by Owen ki
States 0, 1, and 2 have 30 images, and State 3 has only 10 images. So I want to restrict viewing objects by drag and control them with buttons only when I switch to state 3. That's why we're restricting drag by allowing a transparent layer with an alpha value of 0 to appear when it's switched to state 3. But the problem is that when you do this, you can't click on the hotspot.