Skip to main content
Inspiring
October 8, 2012
Answered

Only first character of plugin name is shown

  • October 8, 2012
  • 1 reply
  • 1604 views

I'm developing a plugin using the Transmit API and for some reason it's only displaying the first character of the display name in the Playback window.

The code is as follows:

#define PLUGIN_DISPLAY_NAME L"My Plugin"

memcpy(&outPluginInfo->outDisplayName, PLUGIN_DISPLAY_NAME, sizeof(PLUGIN_DISPLAY_NAME));

I thought it could be because it's expecting a uint16_t array but the L macro produces a wchar_t array, however when I created a uint16_t array it still exhibited the same problem.

It's worth noting that the example Transmit API code in the SDK suffers from this issue too.

Currently my workaround is to not provide the outDisplayName at all which causes Premiere to populate it with the filename of the plugin bundle, but I would prefer to set the name programmatically.

I am running Premiere Pro CS 6.0.2 on OS X 10.7.4.

This topic has been closed for replies.
Correct answer Zac Lam

Hi Jon,

This was a bug specifically on Mac OS, and I've since fixed this in the sample.  The problem is that wchar_t is 32-bit on Mac, not 16-bit.  So I reused the utility code I provided for other SDK samples:

copyConvertStringLiteralIntoUTF16(PLUGIN_DISPLAY_NAME, outPluginInfo->outDisplayName);

This function is defined in another SDK utility file, which you can include like so:

#include "SDK_File.h"

1 reply

Zac LamCorrect answer
Inspiring
October 9, 2012

Hi Jon,

This was a bug specifically on Mac OS, and I've since fixed this in the sample.  The problem is that wchar_t is 32-bit on Mac, not 16-bit.  So I reused the utility code I provided for other SDK samples:

copyConvertStringLiteralIntoUTF16(PLUGIN_DISPLAY_NAME, outPluginInfo->outDisplayName);

This function is defined in another SDK utility file, which you can include like so:

#include "SDK_File.h"

Inspiring
October 9, 2012

Thanks Zach. I can confirm that this works.

Inspiring
October 11, 2012

My plugin is now working flawlessly with Premiere but both my plugin and the Transmit API example plugin experience the following problems in other apps:

Prelude - If you play back a clip and then try to stop it, the playback button still shows a "stop" icon and it's very difficult to get the clip to play again. Switching off video output to these plugins fixes the problem.

Encore - Video plays back twice as fast as it should (audio plays at the proper rate). Switching off video output  solves the problem and the video and audio play in sync.