RxLaboratory / DuIO

Import / Export tools for After Effects
GNU General Public License v3.0
8 stars 0 forks source link

Script failure in Adobe After Effects since version 22.0.1 #16

Closed FrederikChristiani closed 2 years ago

FrederikChristiani commented 2 years ago

I'm getting "Unable to execute script at line 15489. Bad argument".

I have tested with AE version 22.0.1, 22.1.1, 22.2 and 22.4 on windows and also AE version 22.2.1 on macOS.

Commenting out the lines 15489-15490 helps.

Nico-Duduf commented 2 years ago

Hi, Thanks for the report. We'll need more details: What version of DuIO is it? What were you trying to do/export/import when the error occured? What file type was it? If you could even post the file being exported/imported that'd help tackle the issue more quickly.

Thanks.

FrederikChristiani commented 2 years ago

I used DuIO version 2.1.0. I wasn't even trying to import anything, just running the script gives me the error. Either via "File/Scripts/Run script file..." or installed in "..../Support Files/Scripts/ScriptUI", in which case the error shows up when I start After Effects.

Nico-Duduf commented 2 years ago

Thanks, I'll have a look into that ASAP

Nico-Duduf commented 2 years ago

I've found the issue: you have to allow scripts to write files. Go to the preferences of After Effects, and in the "scripts and expressions" section, check the box "Allow scripts to write files and access network" Then restarting DuIO should work.

This should be explained in the doc or DuIO should display some info about it; that will be the case in the next version.

FrederikChristiani commented 2 years ago

Thanks, that does indeed fix it.