Nik Posted January 11, 2016 Share Posted January 11, 2016 When using the Range node, if you send it a negative number for count, and ab, Vectorworks locks ups due to the creation of an endless loop. Eventually your computer will run out memory. The node should probably test to make sure this doesn't happen. I replaced the RunNode with the following to check for this: def RunNode(self): def frange(x, y, jump): while x - y <= .000001: yield x x += jump a = self.Params.start.value b = self.Params.stop.value c = self.Params.count.value list = [] if ((c == 0) or (a < b and c < 0) or (a > b and c > 0)): list = [a, b] else: c = (b - a) / c list = [n for n in frange( a, b, c)] self.Params.list.value = list Quote Link to comment
Patrick Winkler Posted January 11, 2016 Share Posted January 11, 2016 It also happened a few times to me when I forgot to set the count value. Would be great if there was a Button to terminate the execution of the network. Quote Link to comment
Marionette Maven Marissa Farrell Posted January 11, 2016 Marionette Maven Share Posted January 11, 2016 Currently, Marionette doesn't account well for all types of user error, which is the case in these instances. Marionette runs the same way as a script in the script palette would upon execution. In scripts, there is no current check on whether or not a user would end up in an infinite loop, it's completely in the user's hand to be sure that is prevented. Because of this, I'm not sure how much error handling we can truly provide for Marionette, but sharing these encounters may definitely help us to handle things a bit better in node development. As for the request to have a button that terminates execution, that will likely not happen soon since, again, the network runs EXACTLY how a script would, and there is no way to break an infinite loop in that circumstance either, at least with how scripting is currently implemented, to my knowledge. (I also would LOVE this feature, I break Marionette frequently when creating new nodes) I'll keep my ear open for anything that may help in these situations. Quote Link to comment
Nik Posted January 11, 2016 Author Share Posted January 11, 2016 I'll second a "break" button Quote Link to comment
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.