Do you get the same behavior when keying a native Boolean parameter instead of 
a custom parameter?  CustomParamSets are kind of the wild west in terms of 
behavior.  I would test a Boolean parameter like viewvis and compare with a 
Boolean on a self installing customproperty.

Under the hold the animation layer system is actually the animation mixer which 
has it's own rules and logic.  Perhaps some of that is bubbling up.



Matt








From: [email protected] 
[mailto:[email protected]] On Behalf Of Jeremie Passerin
Sent: Friday, September 06, 2013 4:08 PM
To: softimage
Subject: Animation layers and Boolean parameters

Before I log a bug report, I want to make sure I'm not doing something stupid.
Here is what I do.

- New Scene
- Create a null
- Create a custom property on that null with a boolean parameter
- Set a key on the parameter ( value = False )
- Now create a new animation layer
- Set the param to True and Key
- Move to another frame and key again
BAM ! The parameter is set to False without asking !

Am I doing anything wrong there ?


You can also reproduce the bug with this script :
Application.NewScene("", "")
Application.GetPrim("Null", "", "", "")
Application.AddProp("Custom_parameter_list", "", "", "CustomPSet", "")
Application.SIAddCustomParameter("null", "Param", "siBool", 0, 0, 1, "", 2053, 
0, 1, "", "")
Application.SelectObj("null.CustomPSet", "", "")
Application.SetValue("null.CustomPSet.Param", True, "")
Application.SetValue("null.CustomPSet.Param", False, "")
Application.SaveKey("null.CustomPSet.Param", 1, "", "", "", "", "")
Application.AddAnimationLayer("Scene_Root", "", 1)
Application.SetValue("null.CustomPSet.Param", True, "")
Application.SaveKey("null.CustomPSet.Param", 1, "", "", "", "", "")
Application.SetValue("PlayControl.Key", 10, "")
Application.SetValue("PlayControl.Current", 10, "")
Application.SaveKey("null.CustomPSet.Param", 10, "", "", "", "", "")

Reply via email to