Copy link to clipboard
Copied
Hey guys,
I'm trying to change the output path for a render queue item.
But I always get this error "After Effects error:could not convert Unicode characters. (23:46)".
Here's my code
A_char outPath[256] = "D:/test.mp4";
ERR(suites.OutputModuleSuite4()->AEGP_SetOutputFilePath(0, 0, outPath));
What I'm doing wrong? Help me please! Thank you very much!!!!!
you need to use A_UTF16Char instead of A_char.
Copy link to clipboard
Copied
you need to use A_UTF16Char instead of A_char.
Copy link to clipboard
Copied
Hi shachar carmi,
Thanks for your help, you are the man!!!
Copy link to clipboard
Copied
By the way, in case anyone is having the same problem, here's the full code
const A_UTF16Char *outPath = reinterpret_cast<const A_UTF16Char *>(L"C:\\whee.mov");
ERR(suites.OutputModuleSuite4()->AEGP_SetOutputFilePath(0, 0, (A_char*)outPath));
Copy link to clipboard
Copied
Hi, Zhiqing_Li. I have the same issue. I receive this error every time I start After Effects and it has never been able to open properly since last week.
I'm using the latest version of After Effects CC 2018
OSX El Capitan (10.11.4)
It just started doing this last week. I'm not sure where you're suggesting to place the code you've listed. Any help is appreciated.
Thanks,
Earl
Copy link to clipboard
Copied
Hi Earl,
This is an old thread. You're in the developer's forum, but it sounds like you may have run into the problem not during development, but during normal use? In that case, try uninstalling any third-party plug-ins you may have installed to manage rendering.
If you pinpoint the one plug-in that causes it, you could pass along the bug report to the developer of that plug-in.