Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Automated Import of Bluepencil Frames from zip

Automated Import of Bluepencil Frames from zip

andreas_wetteborn
Explorer Explorer
367 Views
1 Reply
Message 1 of 2

Automated Import of Bluepencil Frames from zip

andreas_wetteborn
Explorer
Explorer
In previous version of Maya(<2023) using Grease pencil it was possible to import from an zip file using the Python API with

 

greasePencilCtx(ctxName, edit=True, importArchive=path_to_file)

 

 
 In the newer versions using Blue pencil I can only find this option

 

cmds.bluePencilFrame(importFrames=True)

 

and that command opens a file input dialog. What I would like to do is be able to directly import from an zip by giving the command a file path. Is there a command that I'm missing that could do that?
368 Views
1 Reply
Reply (1)
Message 2 of 2

chris.unterberg
Explorer
Explorer

Yes please!

I have spent all day just trying to figure out how to do this and it seems like there is no way.

 

When trying to follow the commands in the script editor there is clearly something that happens behind the scenes - calling `maya.plugin.bluepencil.bluePencilImportExport.readArchive()` just unzips the archive and doesn't do anything else. ( When using the FileEditor window mentioned above, Maya is 'stuck' doing things for a while )

 

Please give me the option to load the full archive / images from python/mel - it would make managing draw overs and feeback so much easier.

0 Likes