<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
One might add that if you want to hook into grabs of a small set of specific objects, you should probably look into patching the sceneobjects up with event hooks, and then use those. There _are_ OnGrab functions, but afaik there's no events firing in them, which there should be, really.<BR><BR>Best regards,<BR>Stefan Andersson<BR>Tribal Media AB<BR><BR><BR>

<HR id=stopSpelling>
<BR>
Date: Wed, 21 Jan 2009 21:13:12 +0000<BR>From: garrett.hussey@gmail.com<BR>To: opensim-dev@lists.berlios.de<BR>Subject: Re: [Opensim-dev] Hooking in Scene.EventManager<BR><BR><BR>
<DIV>Great stuff - thanks for your help Diva</DIV>
<DIV> </DIV>
<DIV>Cheers</DIV>
<DIV>    Garrett<BR><BR></DIV>
<DIV class=EC_gmail_quote>2009/1/21 Diva Canto <SPAN dir=ltr><<A href="mailto:diva@metaverseink.com">diva@metaverseink.com</A>></SPAN><BR>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid">
<DIV>Yep, that's it.<BR>Those events are there for being used.<BR><BR>When writing region modules just keep in mind that your region module code runs natively with the core code; if you mess up, the core behavior may get messed up too. So, for example, if your module adds significant delays in processing an event, it may interfere with the normal OpenSim operation. So be smart with your region modules :-) 
<DIV>
<DIV></DIV>
<DIV class=EC_Wj3C7c><BR><BR><BR>Garrett Hussey wrote: 
<BLOCKQUOTE>
<DIV>Hi, sorry  - I should have elaborated a bit more.</DIV>
<DIV> </DIV>
<DIV>At the moment the EventManager exposes a number of events. I want to do the following in</DIV>
<DIV>my region module ...</DIV>
<DIV> </DIV><FONT size=1></FONT><FONT color=#008000 size=1><FONT color=#008000 size=1>// TEST TEST SET</FONT></FONT><FONT size=1> 
m_scene.EventManager.OnObjectGrab += <BR></FONT><FONT color=#0000ff size=1><FONT color=#0000ff size=1>new</FONT></FONT><FONT size=1> </FONT><FONT color=#2b91af size=1><FONT color=#2b91af size=1>EventManager</FONT></FONT><FONT size=1>.</FONT><FONT color=#2b91af size=1><FONT color=#2b91af size=1>ObjectGrabDelegate</FONT></FONT><FONT size=1>(MYObjectGrabDelegate); </FONT>So my module with get notified of every object grab event in the scene. So my question is -  is this a 
<DIV>good/reasonable way to trap every objectgrab event in the scene or is there another mechanism I should be using?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks again</DIV>
<DIV>   Garrett</DIV>
<DIV><BR><BR> </DIV>
<DIV class=EC_gmail_quote>2009/1/21 Diva Canto <SPAN dir=ltr><<A href="mailto:diva@metaverseink.com">diva@metaverseink.com</A>></SPAN><BR>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>Which ones do you need that aren't there?<BR><BR>Garrett Hussey wrote: 
<BLOCKQUOTE>
<DIV>
<DIV>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I'm playing around with my own region module and was wondering ifs its reasonable/sane,</DIV>
<DIV>good/bad practise to add extra event handlers to the Scene.EventManager and handle the events in my</DIV>
<DIV>region module ?</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV>     Garrett</DIV></DIV></DIV><PRE><HR width="90%" SIZE=4>
_______________________________________________
Opensim-dev mailing list
<A href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</A>
<A href="https://lists.berlios.de/mailman/listinfo/opensim-dev">https://lists.berlios.de/mailman/listinfo/opensim-dev</A>
  </PRE></BLOCKQUOTE><BR></DIV><BR>_______________________________________________<BR>Opensim-dev mailing list<BR><A href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</A><BR><A href="https://lists.berlios.de/mailman/listinfo/opensim-dev">https://lists.berlios.de/mailman/listinfo/opensim-dev</A><BR><BR></BLOCKQUOTE></DIV><BR><PRE><HR width="90%" SIZE=4>
_______________________________________________
Opensim-dev mailing list
<A href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</A>
<A href="https://lists.berlios.de/mailman/listinfo/opensim-dev">https://lists.berlios.de/mailman/listinfo/opensim-dev</A>
  </PRE></BLOCKQUOTE><BR></DIV></DIV></DIV><BR>_______________________________________________<BR>Opensim-dev mailing list<BR><A href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</A><BR><A href="https://lists.berlios.de/mailman/listinfo/opensim-dev">https://lists.berlios.de/mailman/listinfo/opensim-dev</A><BR><BR></BLOCKQUOTE></DIV><BR></body>
</html>