Exporting an image that has opacity 0 as different opacity

Hi guys,

i am trying to export an image with opacity 0, using the application.createRenditions function, however i want to change it before to opacity 1, is there any way to achieve it with code? (not that the user itself will change it)

when i try to change the node opacity i get an error, and i couldn’t achieve that using the ```
application.editDocument

All edits to nodes must happen with a call to editDocument(), but only nodes that are within the edit context can be modified by the plugin APIs. So the user would need to first manually select the image to be exported before triggering your plugin. Then the plugin would change the image’s opacity to 1 with sceneNode.opacity, create the rendition, then set the opacity back to the original value, all within one call to editDocument().