Boundaries of Custom Properties 2005-06-15 - By mark wilson
Back Hi, Why would you use a scripted op to get the number of clusters anyway? I managed to do this easily enough without using an scop. Sorry if I missed something. I have got it all working nicely now, its not completely flexible, but fits into our pipe wel enough. The problem I had was storing animated params if you rebuild the interface all the time. Its a bit tricky. Anyway, sorted now. Mark
__ ____ ____ ____ ____ ____ ____
From: owner-xsi@(protected) on behalf of Aloys Baillet Sent: Wed 15/06/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
|
|