ZBrushCentral

Alembic Batch Exporting

Hey everyone!

I just started with ZScripting today to automate a cumbersome export task, where all my subTools should get exported as alembic file.

The script works fine for .obj files, but for alembic files not so well. My issue is that little dialog pop up, where I need to specify my export options.

Has anyone a clue, how I manage such dialog windows properly?

image

[IButton,"ExportAllToAlembic",,

    [IShowActions,0]

    [Loop,[SubToolGetCount],

    [If,[SubToolSelect,loopCount]!=-1,

            [VarSet,subToolName,[IGetTitle,Tool:Subtool:ItemInfo]]

            [VarSet,subToolName,[StrExtract,subToolName,0,[StrLength,subToolName]-2]]

            [FileNameSetNext,[StrMerge,"myPath\",[Var,subToolName],".abc"]]

            [IPress,Tool:Export]

        ,//else

            [LoopExit]

    ]

    ,loopCount]

]

Thanks in advance!

Hi,

Welcome to ZBC! :slight_smile:

I’m afraid that it’s not currently possible to do a batch export for the Alembic file format. This is because the format is implemented using a plugin and control passes from your zscript to the Alembic plugin but not back again - so your code stops running.

-Marcus

1 Like