Hello everyone,
I wanted to change opacity of hotspots that are near the center of the view.
it worked thanks to Klaus code.
But I have hotspots and 3d arrows in the same scene.
I cannot keep the arrows opacity.
I want to change alpha of the hotspot that I have created, not the arrows'.
Hotspot names are like these: "h1", "h2", .....
So I tried to have condition to check it is the hotspot or arrow.
for that, I am using string plugin to find the character "h" from each hotspot name to check if it is hotspot I created or arrow
This is the part of the code:
ZitatAlles anzeigen
<action name="checkhotspots">
for(set(i,0), i LT hotspot.count, inc(i),
copy(hs,hotspot[get(i)]);
hs.getcenter(hs_h, hs_v);
getlooktodistance(d, hs_h, hs_v);
plugin[string].txtfind(destVar,get(hs.name),'h');
if(destVar == 0,
if(d LT 20,
set(hs.alpha, "0.9");
,
set(hs.alpha, "0");
);
);
);</action>
The condition (destVar == 0 ) is never true.
Please, help me
It would be great If I get solution.
Thanks a lot,
Mudin