io_scene_psk_psa icon indicating copy to clipboard operation
io_scene_psk_psa copied to clipboard

Multiple PSA import

Open 2ant opened this issue 8 months ago • 15 comments

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

2ant avatar Oct 21 '23 11:10 2ant

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.

cmbasnett avatar Oct 24 '23 17:10 cmbasnett

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

InPride avatar Jan 23 '24 23:01 InPride

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?

cmbasnett avatar Jan 24 '24 09:01 cmbasnett

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.

InPride avatar Jan 24 '24 18:01 InPride

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

ItsAlphaNeon avatar Jan 27 '24 12:01 ItsAlphaNeon

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.

cmbasnett avatar Feb 14 '24 19:02 cmbasnett

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 avatar Feb 14 '24 19:02 InPride

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?

InPride avatar Mar 29 '24 12:03 InPride

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

cmbasnett avatar Mar 31 '24 18:03 cmbasnett

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

InPride avatar Mar 31 '24 18:03 InPride

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

cmbasnett avatar Mar 31 '24 21:03 cmbasnett

it work's perfect. i never forget you thanks

InPride avatar Apr 02 '24 07:04 InPride

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.

Rekovari avatar Apr 14 '24 19:04 Rekovari

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

InPride avatar Apr 14 '24 19:04 InPride

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!

Rekovari avatar Apr 14 '24 19:04 Rekovari