Skip to main content
Richard Rosenman
Inspiring
October 11, 2023
Question

Best method to import / load OBJ files with custom plugin? (SDK)

  • October 11, 2023
  • 2 replies
  • 462 views

Hi gang;

 

I am developing a plugin that will apply an effect from a 3D OBJ model.

 

I thought After Effects could import OBJ files as it does so on my production machine. I can simply drag and drop any OBJ model into the media panel. However, I've just noticed on my development machine, which doesn't have many third party plugins, it doesn't allow me to import OBJ files. This is a surprise to me that it is not natively supported. I suppose my productions machine allows OBJ import through one of the installed third party plugins. And yes, I know OBJ import is in the forthcoming beta but that's a different topic.

 

Anyway, I went through all the work of using AEGP to get the file path of the footage item with the intention that I could import the OBJ file, drop it into my comp, point to the layer from my plugin, retrieve the file path, and then load the data I need. Naturally, this won't work. So now I don't know how to allow the user to access an OBJ file.

 

Is there another option? Does it need to be loaded using a file prompt? I haven't come across any examples of file prompts on this forum or the SDK.


Is there any other workflow I'm missing that I should be considering for importing / loading OBJ files to work with them?

 

Thanks,

-Richard

This topic has been closed for replies.

2 replies

Mylenium
Legend
October 11, 2023

In the olden days developers just hid it under the "Options..." menu and implemented their own code, which is basically the only way to do it safely without interference. Unless you contact the devs and they provide you with the code to use their existing stuff, that's probably how it's gotta be...

 

Mylenium

Community Expert
October 11, 2023

did you base your work on the "FBIO" sample project? that's how file format importing works...

in any case, AE only allows one IO/FBIO plugin per-format. it uses the first loaded and ignores the othes. so perhaps there's already such a plugin on your system that you're not aware of?