Is there a way to terminate a running daz script?
![Dafa](https://secure.gravatar.com/avatar/aa62aba71b3f895137f3a46faaf2afd8?&r=pg&s=100&d=https%3A%2F%2Fvanillicon.com%2Faa62aba71b3f895137f3a46faaf2afd8_100.png)
Is there a function to kill or terminate a running daz script?
You currently have no notifications.
Is there a function to kill or terminate a running daz script?
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2025 Daz Productions Inc. All Rights Reserved.
Comments
In DS itself or in the ScriptIDE? In the IDE the debugger can pause a script and then the stop command can be entered in the console (I can't recall the syntax offhand but there was a thread on this).
I mean programmatically - is there a kill DzScript function? I'm searching through the documentation but I haven't found anything yet.
See this older thread: How to terminate script execution from within DazScript?
You probably want to be wrapping your entire script in an anonymous function anyway (It's so common, there is a template build into the editor: Edit -> Function -> Wrap in Anonymous) which gets you half way there.
Are you nested deep at the point you want to exit? Drop all your code in a try catch block, and throw to get out.
Yes, I see what you mean. Thanks.