custom plugins 2004-07-14 - By kim aldis
Back I'm not sure if I'm dealing with a bug here or maybe a limitation, even something I'm trying to do that's beyond the designed intentions of custom plugins but I thought I'd just run it by here before sending it off to support, see if anyone had any thoughts. I've a custom plugin, unusual in that is build's it's layout in the OnInit callback rather than in the DefineLayout callback. This would be so the ppg can reflect the current state of the scene as and when the scene changes. Normally the ppg is designed to sit on the scene root and be used from there but occasionally there's a need for the plugin to place a ppg elsewhere in the scene. The upshot of this is that it's possible for custom properties from the same source to exist with different parameters on different objects. Again, this is all fine except when I open the two different ppgs, one of them decides to go into a never ending refresh loop, repeatedly calling the OnInit callback. Also, code in the callback that prints out PPG.inspected, prints out the name of the other ppg. Make sense to anyone??
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=812575708-14072004><FONT face=Arial size=2>I'm not sure if I'm dealing with a bug here or maybe a limitation, even something I'm trying to do that's beyond the designed intentions of custom plugins but I thought I'd just run it by here before sending it off to support, see if anyone had any thoughts.</FONT></SPAN></DIV> <DIV><SPAN class=812575708-14072004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=812575708-14072004><FONT face=Arial size=2>I've a custom plugin, unusual in that is build's it's layout in the OnInit callback rather than in the DefineLayout callback. This would be so the ppg can reflect the current state of the scene as and when the scene changes. Normally the ppg is designed to sit on the scene root and be used from there but occasionally there's a need for the plugin to place a ppg elsewhere in the scene. The upshot of this is that it's possible for custom properties from the same source to exist with different parameters on different objects. Again, this is all fine except when I open the two different ppgs, one of them decides to go into a never ending refresh loop, repeatedly calling the OnInit callback. Also, code in the callback that prints out PPG.inspected, prints out the name of the other ppg.</FONT></SPAN></DIV> <DIV><SPAN class=812575708-14072004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=812575708-14072004><FONT face=Arial size=2>Make sense to anyone??</FONT></SPAN></DIV></BODY></HTML>
|
|