v1.1
|
|
Before adding a style template to custom projects, it's necessary to test it and ensure that it works correctly. To do this:
Depending on which object type the category is imported, an object from a category works differently in Renga. If the style template does not match the category of the selected object type, the object may work differently than expected. When developing a style template, consider the basics of MEP Design 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: