  | | | Boundaries of Custom Properties | Boundaries of Custom Properties 2005-06-15 - By kim aldis
Back surely, though, if you've built your layout and create your parameters in the onInit callback then it does it all for you when the PPG is refreshed. why would you need a button?
__ __
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Aloys Baillet Sent: 15 June 2005 01:28 To: XSI@(protected) Subject: Re: Boundaries of Custom Properties
Hi here,
PPGs are fully dynamic, that means you can allways add or delete parameters whenever you want. The only thing that's less dynamic is the Layout property of the PPG: you can add items to it (mostly parameters and buttons) and you can clear it (delete ALL the items), that's all.
If you want to add a parameter at run-time, create it with a prefix, then call a function that clears the Layout and add all the items inluding all parameters beginnin with the prefix you specified.
The workflow I would try is: Create the PPG with the basic parameters and a button to refresh the number of clusters (bad news: user input is compulsory here). In the OnInit, check the numbers of clusters of the parent geometry.
Unfortunately it seems that there is no way to create a scripted operator that can read the number of clusters of a geometry (all you will get is an Access Denied error message). But I might have missed something!
Good luck!
Aloys
-- Aloys Baillet - Character TD @ Animal Logic
<!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.2627" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=390310707-15062005><FONT face=Arial color=#0000ff size=2>surely, though, if you've built your layout and create your parameters in the onInit callback then it does it all for you when the PPG is refreshed. why would you need a button?</FONT></SPAN><SPAN class=390310707-15062005><FONT face=Arial color=#0000ff size=2></FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=390310707-15062005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=390310707-15062005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=390310707-15062005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><BR> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Aloys Baillet<BR><B>Sent:</B> 15 June 2005 01:28<BR><B>To:</B> XSI@(protected)<BR><B>Subject:</B> Re: Boundaries of Custom Properties<BR></FONT><BR></DIV> <DIV></DIV>Hi here,<BR><BR>PPGs are fully dynamic, that means you can allways add or delete parameters whenever you want.<BR>The only thing that's less dynamic is the Layout property of the PPG: you can add items to it (mostly parameters and buttons) and you can clear it (delete ALL the items), that's all.<BR><BR>If you want to add a parameter at run-time, create it with a prefix, then call a function that clears the Layout and add all the items inluding all parameters beginnin with the prefix you specified.<BR><BR>The workflow I would try is:<BR>Create the PPG with the basic parameters and a button to refresh the number of clusters (bad news: user input is compulsory here).<BR>In the OnInit, check the numbers of clusters of the parent geometry.<BR><BR>Unfortunately it seems that there is no way to create a scripted operator that can read the number of clusters of a geometry (all you will get is an Access Denied error message). But I might have missed something!<BR><BR>Good luck!<BR><BR>Aloys<BR><BR>-- <BR>Aloys Baillet - Character TD @ Animal Logic </BLOCKQUOTE></BODY></HTML>
|
|
 |