取消
显示结果 
搜索替代 
您的意思是: 

while loop termination...

So I have this long sequence of frames and I have an while loop which runs outside of the sequence. I want to to terminate the while loop after the last frame of the sequence  has completed. I tried to wire a logic true constant from the last frame to the  while loop but it does not  work because the while loop seems to terminate prematurelly.  Could someone sugguest  a way of dealing with it? I can' figure out a solution for some reason.





0 项奖励
1 条消息(共 4 条)
2,899 次查看
Are you referring to the code you posted here?
0 项奖励
2 条消息(共 4 条)
2,898 次查看
yeap高兴表情
0 项奖励
3 条消息(共 4 条)
2,896 次查看
Then the answer is, as with the other case, data dependency. If you wire a value out of your sequence frame into the while loop you've established a data dependency for the while loop since the while loop needs to know what the value of that wire is before it can execute, and the value is not set until the sequence frame ends.

Since your while loop houses an event structure, generate an event at the end of your sequence frame to stop this parallel loop. A crude solution: Wire a True value to the "Value (Signaling)" property of the "Stop" control, and change the event case from "Mouse Up" to "Value Change". You should make sure to initialize the "Stop" button to False at the start of your program, and to change the mechanical action to "Switch When Released":
0 项奖励
4 条消息(共 4 条)
2,888 次查看