redpawfx
In the C++ api  side of things.  say I've got  a couple of flag  variables that match  node attributes on my node,   that signal when attributes change within my compute block.. 

ie  time  attribute, mTime internal attribute....
attributeAffects  (time ,  updateFlagAttr)
in compute:  if   mTime > time   (do something)

So I save a file with various settings on my actual attributes and reload the file.

when you reload the file  the post constructor is not able to get the values from your  attributes because it appears that they have not been updated to the settings on disk yet.  

So at what point would I be able to  access these  values from the saved attribute  values  properly  so that  I can be sure my internal flag variables  are initialized  to the values from disk and not  the node  creation defaults..

I'm looking for a better workflow for this problem.  I don't want to have to  rewind / change time  just to re-init my node.  Is there a mechanism I can implement that will force an update  after a file load?   How do\ other  folks handle this sort of thing ?

any and all  ideas are welcome :-) thanks !
-johnc


Reply 0 0
redpawfx
Ah,  I figured it out,   MSceneMessage::kAfterOpen   

scene open /import/reference callbacks  works pretty well.

carry on!
nothing to see here.

-johnc


Reply 0 0
Reply