HomefieldOfView | SPi-V dev

Navigation

user

FIXED: Cannot change catchevents by ramp actions

Hi Aldo,

I am unable to modify the catchevents attribute of an element within a ramp. It works fine when set in a static way, but doesn't change when modified by an setProperty action.

Bug? Feature? I am too stupid?

Regards, Alex

Not all properties of an element are dynamically settable.

Not all properties of an element are dynamically settable. 'catchevents' is one of those properties that currently can not be set at runtime. Do you have a good scenario where you'ld need that functionality?

Yes I have

I want to display a clickable map right in the middle of the screen, which can fade in and fade out (means blending out, not moving out). When the map is visible, any in-scene hotspots (panoelements) behind the map are still clickable, although they are not visible. So, I thought for myself, that is not a problem at all, I still can enable the catchevent attribute on the map on fade-in and switch it off on fade out. But unfortunately, it doesn´t work.

Is that a good scenario? ;)

Regards, Alex

Good scenario...

That's a good scenario, but I have a workaround for now:

Have your map element(s) with catchevents="true", and change the 'visible' property as well as the blend. In your blend behavior, add an action that sets the 'visible' property to the same value as the 'blend' property. Anything non-zero will set the visible to true, and as soon as the blend reaches 0, it will also be set invisible. Invisible elements don't catch events (but elements with blend="0" and visible="true" are considdered to be visible)

Re: ACTIVE: Cannot change catchevents by ramp actions

Fixed in SPi-V 1.4 beta 3