![]() |
v2.0
|
|
Before adding a style template to custom projects, it's necessary to test it and ensure that it works correctly. To do this:
If the style template does not match of the selected object type, the object may work differently than expected. During the development of a style template, keep in mind the principles of the tools in Renga.
If errors occur during script execution, they are recorded in the file localappdata%\Renga Software\Renga\AecApp.log. This allows you to track and analyze errors that may arise during script execution.
For more detailed debugging of your scripts, you can use the print() function. This function outputs the arguments passed to it to the file localappdata%\Renga Software\Renga\AecApp.log. By adding print() calls, you can obtain information about the current state of variables and the execution process. This will help you identify and resolve issues.
For curves (Curve2D and Curve3D), the __tostring metamethod is overridden, converting the object to a string. This string provides debug information about the curves, making it easier to analyze their state during script execution.
For example, when executing the following code:
the following information will be logged: