• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Using Image File in Plugin UI

Contributor ,
Oct 30, 2020 Oct 30, 2020

Copy link to clipboard

Copied

How does one go about taking a local image file and putting into an AE Plugin UI?

 

Based on my searching through all the sample projects and headers/resources, it seems like newImageFromBuffer() inside of the DrawbotSuite would be the route to go. If that is the case, how do I grab a local image file, fill it into a buffer, then provide it to this function to create an arbitrary UI param?

 

Thanks!

TOPICS
How to , SDK

Views

156

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

LATEST

Hi Nate

A simple way to do this is with the header only image loader stb_image. This allows you to load a local file from a path in a variety of formats. You can then copy the array of pixels to the UI via the NewImageFromBuffer that you mentioned, then DrawImage.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines