QuaziGNRLnose , Good to know!
I'm having some other issue with the On Model Created event; example here (run from layout 1): http://1drv.ms/1UZDC56
When new models get created, it doesn't seem to fire the on created event. Am I doing something wrong?
Also, in a different project I'm working on, the on model created returns an error: assertion failure: unable to find instance by IID.
stack trace:
Error
at Error (native)
at assert2 (http://localhost:50000/preview_prelude.js:16:10)
at cr.type_getInstanceByIID [as getInstanceByIID] (http://localhost:50000/commonace.js:1198:3)
at cr.type_applySolToContainer [as applySolToContainer] (http://localhost:50000/commonace.js:1338:28)
at Runtime.executeSingleTrigger (http://localhost:50000/preview.js:4800:26)
at Runtime.triggerOnSheetForTypeName (http://localhost:50000/preview.js:4762:16)
at Runtime.triggerOnSheet (http://localhost:50000/preview.js:4694:13)
at Runtime.trigger (http://localhost:50000/preview.js:4665:13)
at Object.THREE.TSH.ModelFit (http://localhost:50000/Q3Dobj_plugin.js:932:17)
at instanceProto.setupModel (http://localhost:50000/Q3Dobj_plugin.js:953:14)
I did some experimenting and it seems to happen when the model is part of a container and it has to create the other object. Here is an example capx showing the error. It's basically the same capx as before but the model is part of a container: http://1drv.ms/1QH6tMl
Hope you can fix these issues!