Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
Animation / Mobile
Targeting Objects . . .|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
Honorary 'Adroit' Mechanic![]() |
Hi,
The Events - Formulas aspect of WebEngine intrigue me somewhat especially, as always, it might minimise the maintenance of what I'm building at present. I've not got my mind around it all yet - but nevertheless a question. . Given that an object may have a numeric value which can be altered and used as a trigger (that correct??) is there a supported method for targeting an object from outside of the current window and consequently changing it's value from another process? ie much the same way you might target a js function to a particular window with the 'target=' attribute I wondered if we can go one step further and target a WebEngine object within a window? At a trivial level this might involve an object on one WebEngine built page triggering an object on another WebEngine built page (both pages being part of the same project). -Bruce |
||
|
VM Staff![]() |
Hi Bruce,
There is no support for that right now. Web engine currently considers each page as a separate scene. But it is an interesting thought an we will keep it in mind as we go forward. Cheers, Harpo |
|||
|
|
Honorary Mechanic |
BruceM ..
I have successfully used the (Flash) techniques demonstrated here ... Hawaii Map demo .. but so far for Flash objects only .. possibly the same techniques could be applied to control of SVG objects in different frames?? the trick is to build the Flash objects in different frames (separate objects in different frames in an HTML frameset) .. then intercommunicate between frame objects using javascript. DL |
|||
|
Honorary 'Adroit' Mechanic![]() |
Hi DL,
Thanks for the input. I guess I was hoping there would be an integrated DOM type of solution - something along the lines of window.document.images.obj1.value=6 I can live without it for now though. -Bruce |
|||
|
|
Honorary Mechanic |
|
|||
|
Honorary 'Adroit' Mechanic![]() |
In principal, though the SVG element is of limited interest to me at the moment - until SVG is standard within the browser (ie no plugin required) I'll not be using it for production work.
|
|||
|
VM Staff![]() |
Engine does use consistent ID values so you can in theory code any object you want using script and the HTML DOM.
Of course it is up to you to steer clear of conflicts with the engine if you do add you own code. Object IDs use 'O' plus the object name, Geometries use 'G' plus the name etc. So, Obj1, Ggeo1, etc. See the HTML source code for more detail. |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

