06-08-2023, 11:54 AM
Hi
As of 8.7.0, the initialization of the CG is indeed done in the first call to Update. It should ideally be done in OnEnabled. Doing this change is not trivial due to the complexity of the initialization process (generator depends on modules, which depend on their inputs such as splines). Simplifying the initialization process and thus executing it earlier is a task that is already in the backlog, but not planned for the near future. Sorry for that.
The workaround right now is to check the IsInitialized property of the generator before using it. You can either do that in your update method, or listen to the OnRefresh event of the generator. There is no OnInitialized event for generators as of 8.7.0, but I am planning to add it in one of the next updates.
As of 8.7.0, the initialization of the CG is indeed done in the first call to Update. It should ideally be done in OnEnabled. Doing this change is not trivial due to the complexity of the initialization process (generator depends on modules, which depend on their inputs such as splines). Simplifying the initialization process and thus executing it earlier is a task that is already in the backlog, but not planned for the near future. Sorry for that.
The workaround right now is to check the IsInitialized property of the generator before using it. You can either do that in your update method, or listen to the OnRefresh event of the generator. There is no OnInitialized event for generators as of 8.7.0, but I am planning to add it in one of the next updates.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Please consider leaving a review for Curvy, this helps immensely. Thank you.

