Skip to main content
Question

Is there a getVideoByHash(video.videoHash) function?


Duarte_Edan

Hello, I’m developing a plugin, and have been able to bring images to my Express app in a POST by let image = figma.getImageByHash(paint.imageHash)
and then running image.getBytesAsync(). Then sending this uint8Array to Express/Multer.

Are there going to be similar functions added for video? I tried accessing a video in a prototype using its hash i.e. figma.getImageByHash(video.videoHash) but no luck. Sorry if this isn’t very clear. Thanks and love all the cool new features!

All the best, Edan

This topic has been closed for replies.

10 replies

Gleb
  • Power Member
  • 4710 replies
  • November 11, 2022

Yes this will be added.

Update: I misunderstood the question, thought you meant all video APIs but those are already available. Getting an uploaded video from Figma seems to be not possible currently and I saw no mention of it ever becoming available. But it probably should be released at some point of course.


aferriss
  • 1 reply
  • December 27, 2022

Hi there! Just adding a +1 that I would love to see something like getVideoByHash(videoHash). It’d be super useful for helping make plugins that can stylize video!


Michael_Yagudaev

Quick update here: seems like the Figma team is working on introducing this in the next release or two (the release cycle is ~4 weeks).

Source: https://twitter.com/jediahkatz/status/1628162168305733639?s=61&t=YCJEAIDVlCaaFhWAj_rWZw

So hopefully, we will have this soon 🤞.

For now as a workaround, we can ask users to select their videos from their local drive again.


Pat_Maechler

Michael_Yagudaev

Sadly that is correct, there is still no way to do this 😢


Are there any updates here? We would love to be able to do more with videos in our plugins 🥹


Adam19
  • 8 replies
  • May 22, 2024

+1 for this, looking to get all videos in a Figma file quickly for download without having to go frame by frame.


Roelf-Jan
  • 1 reply
  • August 16, 2024

Bump this request, I’m also looking for this! Or just in the REST API


Ivan_Kubota
  • New Member
  • 1 reply
  • August 26, 2024

@Gleb, maybe you get some updates on this? Even getting an S3 link from plugin API (like the one in development mode) would be great to have.


Lorraine_Li

+1 on this request, looking for this to do more with videos 🙏


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings