DarklightGames / io_scene_psk_psa

A Blender extension for importing and exporting Unreal PSK and PSA files
GNU General Public License v3.0
310 stars 20 forks source link

Multiple PSA import #55

Open 2ant opened 8 months ago

2ant commented 8 months ago

Hi, is it possible to import multiples .psa files at once ? When i try to select multiples and then click import it only import the first one.

Thanks for the plugin

cmbasnett commented 8 months ago

This is technically possible to do but there are no internal callbacks for when the selected files change, so the UX for this would be cumbersome without it.

I will see what I can do about adding callbacks into Blender to allow this to work properly in a future version.

InPride commented 5 months ago

I am very grateful for your hard work. But I have over 400 files. I'm waiting eagerly.

cmbasnett commented 5 months ago

I am very grateful for your hard work. But I have over 400 files. I'm waiting eagerly.

Where are you getting the 400 files from? Are they all individual animations?

InPride commented 5 months ago

I'm sure you're having a busy time, but thank you for your quick response. I extracted the animation of Tales of Arise using FModel. When I extracted it with umodel, it was extracted as a file with multiple lists in one file, but some of the animations broke down. So I extracted it with FModel and checked that all the animations came out normally, but it was extracted as multiple files with one animation in one file. That's why I have more than 400 files. For now, I'm just loading them one by one with a mouse and keyboard macro.

ItsAlphaNeon commented 5 months ago

Same here, multiple file import would be quite a time saver, as I have over 50 animation files per model I need to import. (Over a hundred models total)

Thanks for all the hard work, I hope this becomes a feature eventually

cmbasnett commented 4 months ago

This may be possible to handle gracefully in the coming 4.1 release of Blender, where you will now be able to drag & drop multiple files from the file browser into Blender and have them import.

InPride commented 4 months ago

Thank you so much for letting me know. I'm still not finished with the work. I sincerely hope that only good things happen to you ahead of you.

InPride commented 3 months ago

Now I want to write a batch script that imports all the psa files that are in a particular path to the currently selected amateur. But I think I lack knowledge of Python. By any chance, can you tell me the name and the namespace of the function that I import around everything in that animation when the file path is provided?

cmbasnett commented 3 months ago

I'm working on adding the multi drag-and-drop functionality right now.

InPride commented 3 months ago

I'm so glad to hear that news. thank you

cmbasnett commented 3 months ago

I have added the multi-file drag-and-drop functionality. You can try it out with this. It's not done yet but I won't be able to finish it for a few more days. Let me know if/how this works. Just select all the PSA files & drag & drop them onto the file (in Blender 4.1) io_scene_psk_psa-psa-import-multiple-7.0.0.zip

InPride commented 3 months ago

it work's perfect. i never forget you thanks

Rekovari commented 2 months ago

Wait how did you manage to import multiple PSAs? I'm still struggling to figure it out. It only shows 1 in the list and when I try to drag it only imports 1.

InPride commented 2 months ago

Wait how did you manage to import multiple PSAs? I'm still struggling to figure it out. It only shows 1 in the list and when I try to drag it only imports 1.

just delete your psk_psa addon first. and re import new psk_psa addon from cmbasnett's reply. will work's with multiple file drag

Rekovari commented 2 months ago

Wait how did you manage to import multiple PSAs? I'm still struggling to figure it out. It only shows 1 in the list and when I try to drag it only imports 1.

just delete your psk_psa addon first. and re import new psk_psa addon from cmbasnett's reply. will work's with multiple file drag

Ahhh okay! I see my mistake. I was suppose to drag from the windows explorer window, not from the PSA import blender window. Thanks for clearing that up for me!