custom property parameter OnChanged callbacks 2005-06-19 - By benp
Back thanks Aloys! yeah, pretty annoying! Thanks for the workaround suggestion. I was actually using an enum control (siControlIconList) with only a single icon to simulate a bitmapped button - really nice to look at! The button then fired off a parameter plotting function. But because the enum control is built on an underlying paramety, so instead of OnClicked i use OnChanged and then set the enum control back to an 'unselected' value after the plotting to make the single icon list behave like a button. But of course the OnChanged gets triggered in this odd way, making it useless! Oh well, at least i ended up learning something by the end of the saga. It's annoying ending a session knowing less than when you started! So, regular buttons for me .. cheers benp
Aloys Baillet wrote:
> Hi Ben, > > I was able to repro your problem in Python and in JScript... > I was not aware of this problem, and I spoke with Olivier Ozoux and > Eoin Murphy: it's a bug! It has already been logged but it's not > likely to be resolved soon... > I was quite disapointed to see this, and I will have to change some of > my plugins... > It seems that the only solution to this problem is to double the > number of parameters of the PPG (or at least double the parameters > that have an OnChanged callback) and to check if the parameter value > is different from its tween value in all the callbacks! Heavy stuff! > Please Softimage! > > Aloys > > On 6/19/05, *benp* <benp@(protected) <mailto:benp@(protected)>> wrote: > > actually, could someone try this for me? > > -load the self installing plugin attatched (after renaming it to > updateTest_plug.pys) > -run in the script editor: (in python) > Application.ActiveSceneRoot.AddProperty('updateTester') > > -inspect the updateTester PPG, and step forward through time. > -logged in the script editor, do you get something like: > "updateTester :: X_OnChanged :: 0.0" > every time you advance a frame? > > > ? > cheers > benp > > > > > > -- > Aloys Baillet - XSI Technical Director > Character Dpt - Animal Logic > --
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|