Skip to content
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

Drawing Improvements | PSBrush Library for pressure sensitivity / Shortcuts to jump between drawings #1641

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

tetsuoanimation
Copy link
Contributor

Problem
There is no pressure sensitivity when drawing with a pen
There is no way to jump between drawings

Solution
Implement PSBrush library
Implement , and . to jump between drawings

Note
This might need changes from my end or might not be what you need. Feel free to reject.
After updating to the latest main from cgwire/kitsu, the playlists break, but it seems like that might come from a new feature / other problem in PictureViewer ( I can't verify that currently )

…s is not live-updating currently, no idea why )
…d methods, removes unneccesary console logs. wip: step to next / previous frame in both player contexts
updates frame number on save to match player.js frame
…me offset to PreviewPlayer saved annotations to match player.js
Fixes offset framenumber on annotation in previewplayer - Bugfix cgwire#1595
@frankrousseau
Copy link
Contributor

Thank you! That is going to be well appreciated.

Just a question: why did you use this library instead of the one that allows to chose different brushes?

@tetsuoanimation
Copy link
Contributor Author

tetsuoanimation commented Dec 31, 2024 via email

@frankrousseau
Copy link
Contributor

Do you think that you can make your git history cleaner? It's a little bit hard to select the right commit to merge.

@@ -1815,15 +1809,15 @@ export default {
} else if (event.keyCode === 68) {
// d
this.container.focus()
this.pauseEvent(event)
this.pauseEvent(event)-1 //compensate for offsert frame number
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line doesn't make sense.

this.onPencilAnnotateClicked()
} else if ((event.ctrlKey || event.metaKey) && event.keyCode === 90) {
// ctrl + z
this.undoLastAction()
} else if (event.altKey && event.keyCode === 82) {
// alt + r
this.redoLastAction()
} else if (event.altKey && event.keyCode === 74) {
} else if (event.altKey && event.keyCode === 74) {-1 // compensate for offset frame number
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line doesn't make sense.

@tetsuoanimation
Copy link
Contributor Author

tetsuoanimation commented Jan 3, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants