Something that would be incredibly useful for me would be to see the ath & atv of a hotspot while I'm moving it around with the editor. Would be even better if I could click a button beside the hotspot labeled "copy position" and it would copy the code below to my clipboard. Then I could just plug it in to my main xml quickly.
Hotspot edit mode feature request. ath & atv
-
-
You can use the dragable plugin and editable textfield for this.
-
You can use the dragable plugin and editable textfield for this.
You are right!!
Anyone did it and would like to share it? -
Something that would be incredible useful for me would be to see the ath & atv of a hotspot while I'm moving it around with the editor. Would be even better if I could click a button beside the hotspot labeled "copy position" and it would copy the code below to my clipboard. Then I could just plug it in to my main xml quickly.
I agree we need a much better editor. The current one is just so slow and stupid to work with.
I usually use the cursorposition.swf which someone made several years ago. I have no idea who it was and I can not find it among the plugins. But it just give you the position of the cursor on screen.
But much better would be a plugin which also can manipulate the hotspot and give you the positions only for each hotpot to copy-paste.
Especially for videos which are a pain to position with the editor.I really do not need a GUI. It would never be able to do things as easy and fast as you can with a text editor and using the droptools with templates for the basics.
Hans
-
But much better would be a plugin which also can manipulate the hotspot
and give you the positions only for each hotpot to copy-paste.
Especially for videos which are a pain to position with the editor.I really do not need a GUI. It would never be able to do things as easy and fast as you can with a text editor and using the droptools with templates for the basics.
Hans
I agree any single word.
I'd need maybe a kind of object-programming gui, that can drop in preformatted pieces of code. It would make it faster, my lack of memory does not help. I have to look up for syntax every single line I write.
Kolor GUI for krpano is strongly limiting your own opssibilities, and writes an unreadable and hardly modifiable code. I tried it a bit and I'm strongly disappointed. -
-
-
I'd need maybe a kind of object-programming gui, that can drop in preformatted pieces of code.
Hi!
As it is? http://www.krpano.com/forum/wbb/inde…d&threadID=7122Andrey
-
Hi,
Something that would be incredible useful for me would be to see the ath & atv of a hotspot while I'm moving it around with the editor. Would be even better if I could click a button beside the hotspot labeled "copy position" and it would copy the code below to my clipboard. Then I could just plug it in to my main xml quickly.
Here a quick example for doing such - edit/dragable hotspot which will print its position during dragging - the text in the info-textfield can be selected and copied:Click and drag the hotspots:
https://krpano.com/examples/edit-dragable-hotspots/The xml:
https://krpano.com/examples/edit-…le-hotspots.xml(Note - the latest 1.0.8.15 version and plugins are necessary for that example! (for the text formating))
How does that work?
1. Create a textfield where the information about the currently dragged hotspot will be shown:
Code<plugin name="hotspotinfo" keep="true" url="%SWFPATH%/plugins/textfield.swf" html="" css="font-family:Courier;" borderwidth="0" align="left" width="200" height="80" />
2. Then add an action for dragging the hotspots and showing its position - this one here need to be called only once in the ondown event of the hotspot (the CDATA is necessary here to avoid xml parser errors when using the non-backing-spaces ' ' for formating the hotspot text):
Code
Alles anzeigen<action name="draghotspot"> <![CDATA[ if(%1 != dragging, spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery); sub(drag_adjustx, mouse.stagex, hotspotcenterx); sub(drag_adjusty, mouse.stagey, hotspotcentery); draghotspot(dragging); , if(pressed, sub(dx, mouse.stagex, drag_adjustx); sub(dy, mouse.stagey, drag_adjusty); screentosphere(dx, dy, ath, atv); copy(print_ath, ath); copy(print_atv, atv); roundval(print_ath, 3); roundval(print_atv, 3); txtadd(plugin[hotspotinfo].html, '<hotspot name="',get(name),'"[br] ath="',get(print_ath),'"[br] atv="',get(print_atv),'"[br] ...[br] />'); delayedcall(0, draghotspot(dragging) ); ); ); ]]> </action>
3. Then the hotspots - to make them edit and dragable just add a 'ondown' event with the 'draghotspot()' action call:
Code<hotspot name="spot1" style="hotspot_ani_black" ath="-25" atv="-10" ondown="draghotspot();" /> <hotspot name="spot2" style="hotspot_ani_black" ath="-15" atv="+10" ondown="draghotspot();" /> ...
Best regards,
Klaus -
And where do you find this dblclick.swf and dblclick.js ?
Hans
-
And where do you find this dblclick.swf and dblclick.js ?
-
Now I'll try it....
Tried.
Is it already fully working?
how do I save and see generated xml?It is the perfect tool, that lets you free of doing ANYTHING, given that you have clue of what you are doing... it is exactely what I was thinking about
- ability to load and modify old xml, and doing things like to check all external links and put relative paths to currentxml swfpath etc.
- ability to load up all images in folders (i.e. "panos, imgs, inteface, video") and display them in a kind of library
- ability to show a scheme with links and connexions between scenes. In this case I'll tell you I have my own way to treat connection hotspots, I use them to call actions (name= scene1-to-scene2) that I keep in a separate xml with<include>. my model with the actions includes the zoom-to-hotspot, and the instruction on how to open the new scene, and then a lookto and the possibility to interrupt y user or not. This helps a lot in tidying up things for final cleanings and second-thoughts.
Hi!
As it is? http://www.krpano.com/forum/wbb/inde…d&threadID=7122Andrey
-
THANKYOU KLAUS!!!
the last editor is WHAT I WANTED!!! -
Great example Klaus. I was looking for it for a while. It works fine locally, but when I follow the link below I get "out of memory on line 20" error.
https://krpano.com/examples/edit-dragable-hotspots/
Hi,
Here a quick example for doing such - edit/dragable hotspot which will print its position during dragging - the text in the info-textfield can be selected and copied:Click and drag the hotspots:
https://krpano.com/examples/edit-dragable-hotspots/The xml:
https://krpano.com/examples/edit-…le-hotspots.xml(Note - the latest 1.0.8.15 version and plugins are necessary for that example! (for the text formating))
How does that work?
1. Create a textfield where the information about the currently dragged hotspot will be shown:
Codeurl="%SWFPATH%/plugins/textfield.swf" html="" css="font-family:Courier;" borderwidth="0" align="left" width="200" height="80" />
2. Then add an action for dragging the hotspots and showing its position - this one here need to be called only once in the ondown event of the hotspot (the CDATA is necessary here to avoid xml parser errors when using the non-backing-spaces ' ' for formating the hotspot text):
Code
Alles anzeigenif(%1 != dragging, spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery); sub(drag_adjustx, mouse.stagex, hotspotcenterx); sub(drag_adjusty, mouse.stagey, hotspotcentery); draghotspot(dragging); , if(pressed, sub(dx, mouse.stagex, drag_adjustx); sub(dy, mouse.stagey, drag_adjusty); screentosphere(dx, dy, ath, atv); copy(print_ath, ath); copy(print_atv, atv); roundval(print_ath, 3); roundval(print_atv, 3); txtadd(plugin[hotspotinfo].html, '<hotspot name="',get(name),'"[br] ath="',get(print_ath),'"[br] atv="',get(print_atv),'"[br] ...[br] />'); delayedcall(0, draghotspot(dragging) ); ); ); ]]>
3. Then the hotspots - to make them edit and dragable just add a 'ondown' event with the 'draghotspot()' action call:
Best regards,
Klaus
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!