  | | | Boundaries of Custom Properties | Boundaries of Custom Properties 2005-06-15 - By kim aldis
Back No, you're right. It just seemed to me that the refresh was enough and that the button was an added complicationg but from a user's point of view the button would be a more visible option.
__ __
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Aloys Baillet Sent: 15 June 2005 08:25 To: XSI@(protected) Subject: Re: Boundaries of Custom Properties
If the user add a cluster and wants to see the change in the PPG without having to refresh it, the button can do the job, am I wrong?
On 6/15/05, kim aldis <kim@(protected)> wrote:
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
-- Aloys Baillet - XSI Technical Director Character Dpt - 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=625393107-15062005><FONT face=Arial color=#0000ff size=2>No, you're right. It just seemed to me that the refresh was enough and that the button was an added complicationg but from a user's point of view the button would be a more visible option.</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 08:25<BR><B>To:</B> XSI@(protected)<BR><B>Subject:</B> Re: Boundaries of Custom Properties<BR></FONT><BR></DIV> <DIV></DIV>If the user add a cluster and wants to see the change in the PPG without having to refresh it, the button can do the job, am I wrong?<BR><BR> <DIV><SPAN class=gmail_quote>On 6/15/05, <B class=gmail_sendername>kim aldis</B> <<A href="mailto:kim@(protected)">kim@(protected)</A>> wrote: </SPAN> <BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204 ,204) 1px solid"> <DIV dir=ltr align=left><SPAN><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><FONT face=Arial color=#0000ff size=2></FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><BR> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px"> <DIV lang=en-us dir=ltr align=left> <HR> <FONT face=Tahoma size=2><B>From:</B> <A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:owner-xsi@(protected)" target=_blank>owner-xsi@(protected)</A> [mailto:<A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:owner-xsi@(protected)" target=_blank>owner-xsi@(protected)</A>] <B>On Behalf Of </B>Aloys Baillet<BR><B>Sent:</B> 15 June 2005 01:28<BR><B>To:</B> <A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:XSI@(protected)" target=_blank>XSI@(protected)</A><BR><B>Subject:</B> Re: Boundaries of Custom Properties<BR></FONT><BR></DIV> <DIV><SPAN class=e id=q_1047eded3c5d8d12_1> <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 </SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></DIV><BR><BR><BR>-- <BR >Aloys Baillet - XSI Technical Director<BR>Character Dpt - Animal Logic<BR>-- </BLOCKQUOTE></BODY></HTML>
|
|
 |