Atom Posted October 17, 2016 Share Posted October 17, 2016 (edited) Hi All, I have been writing some python code which generates keyframes for channels. I know that Green means the current frame has a keyframe. I know that Dark Cyan means this field is keyframed but the current frame is not the keyframe. I know that Dark Gold means you have typed in a number but have not locked the number in as a keyframe. But I don't know what Dark Red means? When I inspects the red keyframes in the Animation Editor, they seem valid. Does anyone know what red keyframes means? Edited October 18, 2016 by Atom Quote Link to comment Share on other sites More sharing options...
ciliath Posted October 18, 2016 Share Posted October 18, 2016 I believe It means that you have typed a python expression in It Quote Link to comment Share on other sites More sharing options...
Atom Posted October 18, 2016 Author Share Posted October 18, 2016 (edited) Hmm...but I know I have not typed anything. All these keyframes were created by the same Python code. They are all of the same type bezier() Edited October 18, 2016 by Atom Quote Link to comment Share on other sites More sharing options...
galagast Posted October 18, 2016 Share Posted October 18, 2016 Could it be that the parameter is set to Python? You can check by right clicking on the parameter and choose Expression > Change language to Pyhton/Hscript... Quote Link to comment Share on other sites More sharing options...
Atom Posted October 18, 2016 Author Share Posted October 18, 2016 Yep, that was it, my node expression language was Python so the bezier() expression was not evaluating because it is hScript. Once I switched back to hScript all my fields have turned green. @ciliath: So you were right about it being an expression in the field. I guess the Dark Red means the expression has errors or can not evaluate. Quote Link to comment Share on other sites More sharing options...
galagast Posted October 18, 2016 Share Posted October 18, 2016 If you set your node expression language to Python, any parameter that is set to Hscript will be highlighted in dark red. (it does not mean that the Hscript has errors) Otherwise, if you set your node expression language to the default Hscript, any parameter that is set to Python will be highlighted in dark red. I suppose those color indicators are there because Houdini allows writing both languages on the same node. From the docs: Quote You can mix-and-match expressions in different languages (HScript or Python) on the same node. Parameters that use a different language from the node’s default language are highlighted in pink. Quote Link to comment Share on other sites More sharing options...
Atom Posted October 18, 2016 Author Share Posted October 18, 2016 (edited) Ah, thanks for clarifying that. So it is more of a visual warning against language type mis-matches on expression fields. Edited October 18, 2016 by Atom Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.