Hi! I noticed that a python expression is evaluating to 0 when it should be 1, and forcing it to reevaluate, either by changing the expression or by toggling the par mode from expr to const and back, fixes it. Screenshot below.
I have a setup where I fade in a waveform graphic when an audio file is playing, and fade it out when it’s done. I had a constant CHOP with one channel, and this expression as the value: op('audiofilein1').par.play and op('info_audio')['fraction'] < 1
Intermittently, the waveform wouldn’t appear when I could still hear the audio, and realized one of those expressions was evaluating to False. I split them out to separate channels (as shown in the screenshot) and the play flag expr was showing 0 when the audio was actually playing.
I just tried working around this again by toggling the par mode to constant in my Load() method and back to expression in AnimateIn() so hopefully this works. I can report back.
Here’s a screenshot. Please let me know if the toe file would be helpful.
trying to replicate the issue, is this inside a clone? Also is there some other logic in play where the content of the component might not be displayed at some point (like maybe you are getting to the content with a dynamic Select TOP?)
Does this happen when the network with the Constant CHOP in question is open in a pane?
If you have a condensed project file where it is intermittently happening or could describe further how we might replicate the issue, that’d be great.
In the meantime, you could also try to see if a Parameter CHOP selecting the Play parameter would exhibit the same behavior.
Hi Markus. Yes, a clone within a clone actually…I wasn’t sure about the nested setup initially, but it’s seemed mostly fine until recently when I’ve noticed issued like this one.
The app is somewhat of a fancy slideshow, with Slides (the parent clone master) containing Modules (the nested clone master), all built via replicators & tables. I’m not sure if it’ll be easy to reproduce without the media…can I share the file somewhere off the forums, like an email?
The fix I mentioned (toggling the const channel to constant during Load() and back to expr mode during Animatein()) doesn’t seem to be working. Very curiously (to me at least) is that when I inspect the constant after the issue appears, the value params are now sitting in constant mode, and didn’t switch back to expr mode. I know that Animatein() ran though, because some log statements that are a few lines down are producing output in the textport.
The content isn’t dynamically selected in the way you described but is sort of similar…the content exists inside various Geometry COMPs, and top-level container is specified in the Render TOP’s Geo parameter. However I am toggling the render flag & cook status of various Slides as the presentation progresses. I wasn’t sure if Load() or Animatein() were getting called while cooking is disabled, but my understanding via various debug logs is that cooking is enabled when they’re called.
I’ll try the Parameter CHOP and opening a pane and report back.