Boundaries of Custom Properties 2005-06-15 - By Aloys Baillet
Back 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 --
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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" 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 color="#0000ff " face="Arial" size="2"></font></span></div> <div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2">< /font></span> </div> <div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2">< /font></span> </div> <div align="left" dir="ltr"><span><font color="#0000ff" face="Arial" size="2">< /font></span> </div><br> <blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"> <div align="left" dir="ltr" lang="en-us"> <hr> <font face="Tahoma" size="2"><b>From:</b> <a href="mailto:owner-xsi@(protected) .COM" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)" >owner-xsi@(protected)</a> [mailto:<a href="mailto:owner-xsi@(protected)" target="_blank" onclick= "return top.js.OpenExtLink(window,event,this)">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 href="mailto:XSI@(protected)" target="_blank" onclick="return top.js .OpenExtLink(window,event,this)">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>--
|
|