You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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,111

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 :: wiki.cms4vr.com

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*