Plugin: Local File Importer (Import Images from your Computer!)

I’ve analysed the source code of that plugin, and it seems like you’re using a lot of Rōblox-provided stuff that aren’t documented on the public wiki (i.e. GetTemporaryId and the File class). How were you able to get a hold of them?

1 Like

I was curious how the terrain heightmap importer plugin was able to import files, and I found that it used :GetBinaryContents() to read data to be used by Terrain:ImportHeightmap() and :GetTemporaryId() to display the heightmap as an image in the widget.

There’s also this reference:

3 Likes

I linked it in my post. By any chance, do you have editing access to the documentation? Something needs to be done to make it easier for other devs to figure it out. Both plugins (yours and the terrain-heightmap importer one) might just be setting off a trend.

Nope, I don’t have any special permisions. If you want documentation to be done on something, do a #platform-feedback:documentation-requests

1 Like

Do you think it’s possible to import images bigger than 1024x1024 in full HD?

1 Like

You can import really hi-res 4K images, but they won’t appear sharp because of Roblox’x texture filtering.

2 Likes

How about rendering four 1080p images separately (algorithmically, by modifying the binary stream)? How about SurfaceGuis?

This is gonna be the main use case for Racecar people lol. Rather than uploading, realizing something is wrong, and then changing just to re-upload.

1 Like

If this is possible- any plans on streamlining that process?

Edit: This plugin is fantastic regardless- many thanks.

Cant streamline this since you have to select the files yourself.

I saw you mentioned audio, but do you have plans to expand functionality to meshes?

2 Likes

Can’t. You can only use them if they’re .mesh files.

3 Likes

Aww, that’s kinda lame. A plugin like this would be really good for meshes, so it’s a shame that it can’t work. :frowning:

2 Likes

Quick suggestion with regards to the temporary folder you place in ServerStorage - maybe it could only be created when it’s needed, rather than at plugin startup as it is now? Could help keep things clean :stuck_out_tongue:

edit: specifically, this:
image

5 Likes

Will do.

Also, on a totally unrelated note: Local music files might never be implemented since you can’t play those in Play Solo, so they’re not useful as I had hoped ;_;

5 Likes

Got around to making it so that the folder only gets created the first time an image is actually loaded by the plugin.

6 Likes

I believe you could do sounds too. Remember that the death sound is in your computer by default. I wonder when it is possible to upload sounds.

Oh wait, why couldn’t they be played if the death sound is available? It might’ve been the sound file format.

2 Likes

It sounds like it’s an internal restriction for temporary files in Studio. The sound still works in edit mode, so it’s not a file type issue.

An alternate to using this file API in Studio is to run an external program that copies files into the content directory of your Studio installation. This allows automated and persistent file previews and allows for previewing any file type, but it requires installing an actual program alongside Studio and it requires significantly more programming to implement.

4 Likes

Fabulous! This is really useful now that I don’t have to waste my time to upload images on Roblox.

2 Likes


Now i can finally do this…

12 Likes