  | | | Boundaries of Custom Properties | Boundaries of Custom Properties 2005-06-14 - By Christian Rittener
Back Hey Kim,
I wouldn't mind looking at this example, because maybe it's related to this problem I have.
Via a self-installed plugin, I create a PPG. Apparently, the only way to add a new parameter after the PPG has been created is to delete the PPG and rebuild it. But if I had connected outside expressions to the parameters of that PPG, they disappear with it and of course do not magically reappear and connect to the new PPG. So I have another script rebuilding the expressions. I find this rather convoluted and hard to maintain and reuse... isn't there a better way?
Christian
kim aldis wrote:
> Build the ppgs in the onInit callback instead of the define. You'll need to > delete all your items first then rebuild. You can store the states in an > array then restore after you've rebuilt. I've an example if you want it. > > >>-- --Original Message-- -- >>From: owner-xsi@(protected) >>[mailto:owner-xsi@(protected)] On Behalf Of mark wilson >>Sent: 14 June 2005 10:45 >>To: XSI@(protected) >>Subject: Boundaries of Custom Properties >> >>Hi Folks, >> >>I am messing with writing a custom property that adds >>parameters dynamically based on the clusters that are present >>on the parent geometry. Does this sound like a bad idea? >> >>Obvious problems arise when I have two objects with different >>numbers of clusters thus needing different numbers of >>parameters in the property. I am creating the parameters in >>the Define layout function, so when the another property gets >>applied it sets the correct number of parameters for its >>parent mesh, but this overrides any other instances of the >>property on other objects. >> >>Any thoughts? Am I making any sense? Is there life on Mars? :-) >> >>Mark >> >>--- >>Unsubscribe? Mail Majordomo@(protected) with the following >>text in body: >>unsubscribe xsi >> >> > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi > > >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |