  | | | <Script > PPG_OnChanged Not Called when applying an Expression | <Script > PPG_OnChanged Not Called when applying an Expression 2005-06-27 - By Hans,Veenendaal,AMplus R&D,SOJ
Back Hi All, Self installing plugins question. Is there any way to access the Property Values from the "def *_DefineLayout( context ):" function in python? PPG gives me "NameError: global name 'PPG' is not defined" error. I would like to hide or show parameters depending on values of other parameters I would like to change tab names depending on the parent type. Currently I connect one hidden parameter of the PPG to a parameter in the parent through an Expression, but for some reason XSI doesn't call the appropriate _OnChanged to update the layout function when the Expression is applied. The OnChanged function works fine for UI changed parameters, but it doesn't seem to work through an Expression. Does anybody know how to work around this, or has any suggestions on what I might be doing wrong? Thanks, Hans.
<!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.2900.2668" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=203525304-27062005><FONT size=2>Hi All,</FONT></SPAN></DIV> <DIV><SPAN class=203525304-27062005><FONT size=2></FONT></SPAN> </DIV> <DIV><SPAN class=203525304-27062005><FONT size=2>Self installing plugins question.</FONT></SPAN></DIV> <DIV><SPAN class=203525304-27062005><FONT size=2></FONT></SPAN> </DIV> <DIV><SPAN class=203525304-27062005><FONT size=2>Is there any way to access the Property Values from the "def *_DefineLayout( context ):" function in python?</FONT></SPAN></DIV> <DIV><SPAN class=203525304-27062005><FONT size=2>PPG gives me "NameError: global name 'PPG' is not defined" error.</FONT></SPAN></DIV> <DIV><SPAN class=203525304-27062005><FONT size=2></FONT></SPAN> </DIV> <DIV><SPAN class=203525304-27062005><FONT size=2>I would like to hide or show parameters depending on values of other parameters</FONT></SPAN></DIV> <DIV><SPAN class=203525304-27062005><FONT size=2>I would like to change tab names depending on the parent type.</FONT></SPAN></DIV> <DIV><SPAN class=203525304-27062005><FONT size=2></FONT></SPAN> </DIV> <DIV><SPAN class=203525304-27062005><FONT size=2>Currently I connect one hidden parameter of the PPG to a parameter in the parent through an Expression, but for some reason XSI doesn't call the appropriate _OnChanged to update the layout function when the Expression is applied.</FONT></SPAN></DIV> <DIV><SPAN class=203525304-27062005><FONT size=2></FONT></SPAN> </DIV> <DIV><SPAN class=203525304-27062005><FONT size=2>The OnChanged function works fine for UI changed parameters, but it doesn't seem to work through an Expression.</FONT></SPAN></DIV> <DIV><SPAN class=203525304-27062005></SPAN><SPAN class=203525304-27062005></SPAN><SPAN class=203525304-27062005><FONT size=2></FONT></SPAN> </DIV> <DIV><SPAN class=203525304-27062005><FONT size=2>Does anybody know how to work around this, or has any suggestions on what I might be doing wrong?</FONT></SPAN></DIV> <DIV><SPAN class=203525304-27062005><FONT size=2></FONT></SPAN> </DIV> <DIV><SPAN class=203525304-27062005><FONT size=2>Thanks,</FONT></SPAN></DIV> <DIV><SPAN class=203525304-27062005><FONT size=2>Hans.</FONT></SPAN></DIV> <DIV><FONT face="MS Pゴシック" size=2></FONT> </DIV></BODY></HTML>
|
|
 |