PPG logic 2005-06-08 - By Rafe Sacks
Back Hi,
"at least have a way of tying one callback to more than one button or item."
Couldn't you just call a function from more then one callback? [kim aldis] you could, but you don't acheive much because there's no way of telling what item sourced the callback. In other words, the same action would be taken regardless of what button was pressed.
[Rafe:] You could pass the param from the callback to the primary function. Granted this means you still have to type the wrapper callbacks, but it should give the same result. It would be nice to have a 'this' type keyword which represents the current parameter, although, I guess it's just one line of typing in the end.
The only limitation I have found with PPGs is the global variable thing. I don't see any reason for them to run global code every time (or twice per refresh) - Did I miss your point?
By the way, I use logic strings for collecting logic from more then one external source [kim aldis] how do you mean?
[Rafe:] You can use registered plugins or objects, which return strings, to dynamically collect logic code, then pass the result into the PPG. Thus creating external logic calls. I can't go in to detail, but it can make for some dynamic, collaborative interfaces
--
__ ____ ____ ____ ____ ____ ____ R A F E S A C K S Lead Character TD - Technical Animal Logic Film +612 9383 - 4800
kim aldis wrote:
> > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- > *From:* owner-xsi@(protected) [mailto:owner-xsi@(protected)] > *On Behalf Of *Rafe Sacks > *Sent:* 08 June 2005 11:27 > *To:* XSI@(protected) > *Subject:* Re: PPG logic > > "at least have a way of tying one callback to more than one button > or item." > > Couldn't you just call a function from more then one callback? > [kim aldis] > > you could, but you don't acheive much because there's no way of > telling what item sourced the callback. In other words, the same > action would be taken regardless of what button was pressed. > > By the way, I use logic strings for collecting logic from more > then one external source > [kim aldis] > > how do you mean? >
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1"> <title></title> </head> <body text="#000000" bgcolor="#ffffff"> <div><small><small><font color="#000099"><big><font face="Helvetica, Arial, sans-serif">Hi,</font></big></font></small></small><br> <br> </div> <blockquote> <div>"<font color="#000099"><small><font face="Arial" color="#0000ff"><span class="593364109-08062005">at least have a way of tying one callback to more than one button or item.</span></font></small></font>"<br> <br> <small><font face="Helvetica, Arial, sans-serif" color="#000099">Couldn't you just call a function from more then one callback? <br> <span class="609464510-08062005"><font face="Arial" color="#0000ff">[kim aldis] </font></span></font></small></div> <div><small><font face="Helvetica, Arial, sans-serif" color="#000099"><span class="609464510-08062005"></span></font></small> </div> <div><small><font face="Helvetica, Arial, sans-serif" color="#0000ff"><span class="609464510-08062005">you could, but you don't acheive much because there's no way of telling what item sourced the callback. In other words, the same action would be taken regardless of what button was pressed.</span></font></small></div> <div><small><font face="Helvetica, Arial, sans-serif" color="#000099"><span class="609464510-08062005"></span></font></small> <br> <br> </div> </blockquote> <div><font color="#000099"><small><font face="Helvetica, Arial, sans-serif">[Rafe:] You could pass the param from the callback to the primary function. Granted this means you still have to type the wrapper callbacks, but it should give the same result. It would be nice to have a 'this' type keyword which represents the current parameter, although, I guess it's just one line of typing in the end. <br> <br> The only limitation I have found with PPGs is the global variable thing. I don't see any reason for them to run global code every time (or twice per refresh) - Did I miss your point?</font></small></font><br> </div> <blockquote> <div><br> <br> </div> <div><small><font face="Helvetica, Arial, sans-serif" color="#000099"><span class="609464510-08062005"> </span>By the way, I use logic strings for collecting logic from more then one </font></small><small><font face="Helvetica, Arial, sans-serif" color="#000099">external </font></small> <small><font face="Helvetica, Arial, sans-serif" color="#000099">source<br> <span class="609464510-08062005"><font face="Arial" color="#0000ff">[kim aldis] </font></span></font></small></div> <div><small><font face="Helvetica, Arial, sans-serif" color="#000099"><span class="609464510-08062005"></span></font></small> </div> <small><font face="Helvetica, Arial, sans-serif" color="#000099"><span class="609464510-08062005"><font face="Arial" color="#0000ff">how do you mean?</font> <br> <br> </span></font></small></blockquote> <font color="#000099"><small><font face="Helvetica, Arial, sans-serif">[Rafe:] You can use registered plugins or objects, which return strings, to dynamically collect logic code, then pass the result into the PPG. Thus creating external logic calls. I can't go in to detail, but it can make for some dynamic, collaborative interfaces<br> <br> </font></small></font><br> -- <br> <div class="moz-signature"> <meta http-equiv="content-type" content="text/html; "> <title>RafeSignature</title> <meta name="author" content="Rafe Sacks"> <pre wrap=""><small><font face="Century Gothic"><font color="#000066"><font color="#000066"><font color="#c0c0c0" style="color: rgb(192, 192, 192);"><span style="font-family: helvetica,arial,sans-serif;"></span></font></font></font>< /font></small><span style="font-family: helvetica,arial,sans-serif; color: rgb(204, 204, 204);"> <small><big><small><font face="Century Gothic"><small><span style="font-family: helvetica,arial,sans-serif;"></span></small></font></small ></big></small></span><span style="color: rgb(102, 102, 102); font-family: helvetica,arial,sans-serif;"> <span style="color: rgb(153, 153, 153);"><span style="font-family: helvetica,arial,sans-serif;"><span style="color: rgb(102, 102, 102); font-family: helvetica,arial,sans-serif;"> <small><font color="#000066"><font color="#000066"><font color="#c0c0c0" style="color: rgb(204, 204, 204);">__ ____ ____ ____ ____ ____ ____</font> </font></font><font style="font-family: helvetica,arial,sans-serif;"><font color="#000066"><small><small><font color="#666666"><big><font color="#000066"><big><big><small style="font-weight: bold;">R A F E S A C K S</small><span style="font-weight: bold;"></span></big> </big></font></big></font></small></small></font></font></small><small style="color: rgb(153, 153, 153);"><big><small><small><span style="color: rgb(192, 192, 192);">Lead Character TD - Technical</span> <span style="color: rgb(192, 192, 192);">Animal Logic Film</span> <span style="color: rgb(192, 192, 192);">+612 9383 - 4800</span></small>< /small></big></small></span></span></span></span></pre> </div> <br> kim aldis wrote:<br> <blockquote type="cite" cite="mid200506080945.j589jUnP014403@(protected)"> <title></title> <meta content="text/html; " http-equiv="Content-Type"> <meta name="GENERATOR" content="MSHTML 6.00.2900.2627"> <br> <blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;" dir="ltr"> <div align="left" dir="ltr" lang="en-us" class="OutlookMessageHeader"> <hr tabindex="-1"> <font size="2" face="Tahoma"><b>From:</b> <a class="moz-txt-link-abbreviated" href="mailto:owner-xsi@(protected)">owner -xsi@(protected)</a> [<a class="moz-txt-link-freetext" href="mailto:owner-xsi @(protected)">mailto:owner-xsi@(protected)</a>] <b>On Behalf Of </b>Rafe Sacks<br> <b>Sent:</b> 08 June 2005 11:27<br> <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:XSI@(protected) .COM">XSI@(protected)</a><br> <b>Subject:</b> Re: PPG logic<br> </font><br> </div> <div>"<font color="#000099"><small><font color="#0000ff" face="Arial"><span class="593364109-08062005">at least have a way of tying one callback to more than one button or item.</span></font></small></font >"<br> <br> <small><font color="#000099" face="Helvetica, Arial, sans-serif">Couldn't you just call a function from more then one callback? <br> <span class="609464510-08062005"><font color="#0000ff" face="Arial">[kim aldis] </font></span></font></small></div> <div><small><font color="#000099" face="Helvetica, Arial, sans-serif"><span class="609464510-08062005"></span>< /font></small> </div> <div><small><font color="#0000ff" face="Helvetica, Arial, sans-serif"><span class="609464510-08062005">you could, but you don't acheive much because there's no way of telling what item sourced the callback. In other words, the same action would be taken regardless of what button was pressed.</span></font></small></div> <div><small><font color="#000099" face="Helvetica, Arial, sans-serif"><span class="609464510-08062005"></span>< /font></small> </div> <div><small><font color="#000099" face="Helvetica, Arial, sans-serif"><span class="609464510-08062005"> < /span>By the way, I use logic strings for collecting logic from more then one </font>< /small><small><font color="#000099" face="Helvetica, Arial, sans-serif">external </font></small> <small><font color="#000099" face="Helvetica, Arial, sans-serif">source<br> <span class="609464510-08062005"><font color="#0000ff" face="Arial">[kim aldis] </font></span></font></small></div> <div><small><font color="#000099" face="Helvetica, Arial, sans-serif"><span class="609464510-08062005"></span>< /font></small> </div> <div><small><font color="#000099" face="Helvetica, Arial, sans-serif"><span class="609464510-08062005"><font color="#0000ff" face="Arial">how do you mean?</font> </span><br> <br> </font></small></div> </blockquote> </blockquote> <br> <div class="moz-signature"> <pre wrap=""><span style="color: rgb(102, 102, 102); font-family: helvetica,arial,sans-serif;"> <span style="color: rgb(153, 153, 153);"><span style="font-family: helvetica,arial,sans-serif;"><span style="color: rgb(102, 102, 102); font-family: helvetica,arial,sans-serif;"> <small style="color: rgb(153, 153, 153);"><big><small><small><span style="color: rgb(192, 192, 192);"></span>
</small></small></big></small></span></span></span></span><span style="color: rgb(102, 102, 102); font-family: helvetica,arial,sans-serif;"> <small style="color: rgb(153, 153, 153);"><big><small><font face="Century Gothic"><small><span style="font-family: helvetica,arial,sans-serif;"> </span></small></font></small></big></small></span></pre> </div> </body> </html>
|
|