Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
custom property parameter OnChanged callbacks

custom property parameter OnChanged callbacks

2005-06-19       - By benp

 Back
Reply:     1     2     3     4  

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


benp wrote:

> hello list,
> I'm having trouble with the _OnChanged callbacks for parameters in a
> self-installed property.
>
> Is it true that all _OnChanged callbacks are triggered for a property
> on a frame change, if it is currenly being inspected?
>
> I have a callback that does some parameter plotting triggered by a
> parameter_OnChanged callback, which all works fine and dandy if i'm
> not stepping through frames, or if the custom PPG is not currently
> being inspected.
> The trouble is when I have the PPG inspected and step through frames,
> it will call *every* parameter _OnChanged callback even though the
> parameters are *not* being changed. This means i get the plotting to
> run on every frame step! Tedious.
> I will probably have to change my logic, attatching the plotting
> process to a button's _OnClicked event, which isn't so bad, as
> _OnClicked events don't seem to be called until being explicitly
> triggered *only* by a button click.
> I just expected that a frame change would not nessessarily trigger all
> of my _OnChanged callbacks.
>
> I have also verified that it isn't something weird i'm doing in this
> particular plugin. I have made a simple custom property plug that
> behaves the same way.
>
> I have been writing self installing plugis for a while now, but this
> has supprised me!
> Any hints or slaps around the head would be appreciated.
> cheers
> benp
> ---
> Unsubscribe? Mail Majordomo@(protected) with the following text in
> body:
> unsubscribe xsi