-
Notifications
You must be signed in to change notification settings - Fork 293
Function to import images by filename #1109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@davidlamhauge Excellent! I was missing a proposal like this. I think it will really help traditional animators to get the timing straight from their drawings. For a future consideration it would be great if this could become integrated with the proposal to handle x-sheet data, that way you wouldn't need to keep track of the drawings themselves while cross referencing with the physical x-sheet but for a bigger production you can have your x-sheet data entered on a spreadsheet for each scene and then allow it to be imported along with the referenced image path so Pencil2D would automatically get them for you in the correct placement (this would be particularly useful for longer sequences and separation of different scenes for digitizing bulk work). I see this function as groundwork for that, so thank you for taking the time! 🙂 |
|
@Jose-Moreno Thanks!
|
|
I split the function in two, so the actual import is separated from the finding filename. |
|
While I'm waiting for a decision on how this should be implemented, I've enhanced it a little. |
|
@davidlamhauge David I have been thinking for a few days. Recently I had to recover the work of another user, and I did this by importing all of their images on each layer but it was painful to select non-sequenced drawings and find their corresponding frame to import them there. I feel this function can help address that problem so users can start recovering work on their own as well. My question is: Would it be possible to have a way to customize the import rules to be able to quickly import Pencil2D internal naming which is currently saved as PNG files that represent bitmap drawings with layer name as the layer index followed by a separator and then followed by the frame position eg. 004.00001.png -> this would be an internal png that holds the drawing data from the fourth layer in the first frame. What do you think? |
|
Merged. Thanks @davidlamhauge |
This function will make it possible to import images based on the images filenames. This is mainly a feature that is usefull for traditional animators like myself.
Filenames must follow this format: 'prefix' + 'four digits' + 'suffix'.
If you have a layer with the character 'Joe', you could have the following files: 'Joe0001.png', 'Joe0013.png', 'Joe0015.png', 'Joe0017.png' and 'Joe0019.png'. If you import these drawings with the new function 'importImageSequenceNumbered()', you wil get a new layer named 'Joe' (the prefix), and the drawings will be placed at frames 1, 13, 15, 17 and 19.
I like it. I hope you like it too.