Author Topic: No project loaded error: when trying to export maps at new project creation  (Read 226 times)

So, alg.mapexport.documentStructure() returns undefined when the application is opened and a new project is created.
But if the plugin is reloaded, this problem doesn't persist. Is there a way to reload the plugin via script? or fix this error
alternately:
If the project is baked by hard coding the material name "DefaultMaterial", the error is : project not loaded. Again this error doesn't persist if the plugin is reloaded. but only prevails when the application is opened and a new project created with out reloading thew plugin.

By :
Quote
But if the plugin is reloaded, this problem doesn't persist.
Do you mean that your plugins just try to export maps, or does it create the project as well ?

If you only try to export in the plugin, then the issue could be that the project creation hasn't finished yet and therefor the call to DocumentStructure() will return you an invalid object. Reloading the plugin skip the problem because by then the project has been created. A timer could be the solution there, or using onComputationStatusChanged() to know if we finished computing the default textures.
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Fabrice Piquet aka Froyok. Product Manager, Technical Artist and Documentation at Adobe.