You are not logged in.

1

Tuesday, May 24th 2022, 9:42am

remove pluging in a hotspot tag

hi,
I'm working in a vtour and I would to remove a plugin when I change scene.
I think I can do that through hotspot tag like onclick, and with the attribute creating a function to remove a plugin
like this: <hotspot name ="" style ="" linkedscene = "" onclick (removeplugin()) >

I hope someone can help me,
I hope I was clean :)

mario

spacerywirtualne

Professional

Posts: 1,102

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

2

Tuesday, May 24th 2022, 11:09am

Hello

https://krpano.com/docu/actions/#removelayer


you must use the name or index of the plugin you wish to remove.


Source code

1
<hotspot ... onclick="removeplugin(plugin-name)" />



Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

3

Tuesday, May 24th 2022, 1:22pm

<plugin ... keep="true" />
the plugin is kept between scenes

<plugin ... keep="false" />
the plugin is removed when changing a scene (default)
https://krpano.com/docu/xml/#plugin.keep

the same for layers / hotspots

4

Wednesday, May 25th 2022, 9:21am

how to remove 3d object from the scene

thanks so much,
I will try.

But my goal is to remove the 3d object from the scene.
I thought that if I remove the plugin, I will remove the 3d object too.
Now I can remove the plugin, but the 3d object rests in the scene. I would to remove the object.

mario

This post has been edited 1 times, last edit by "marioapt" (May 25th 2022, 10:26am)


5

Tuesday, May 31st 2022, 3:10pm

Hi,

How did you add your plugin exactly?

6

Tuesday, June 7th 2022, 12:24pm

hi,
thanks for the question, but I fixed the problem

mario

7

Saturday, March 11th 2023, 2:12pm

how did you fix that problem?? *huh*
*thumbup* Woody *thumbup* KEEP MOVING FORWARD *thumbup*