Boundaries of Custom Properties 2005-06-14 - By Aloys Baillet
Back 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
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
|
|