**Created**:: [[2022-01-30 Sunday]] **Link**:: https://youtu.be/qbPIAZguJeo **Duration**:: 2:56 ![More Excalidraw-Obsidian Mobile Goodness](https://youtu.be/qbPIAZguJeo) # Summary In this video, the creator showcases improvements made to the drawing experience on a tablet using Excalidraw within Obsidian. The demonstration features three new scripts that enhance usability, including shortcuts in the customizable page header and tools for managing drawn elements. Viewers are encouraged to share their own script ideas for further enhancement of the application. # Key Takeaways - New customizable page header buttons facilitate quick access to Excalidraw scripts. - Scripts such as "Select Elements by Type" and "Convert Free Draw to Line" enhance drawing workflow and control. - The "Set Background Color of Unclosed Line Object" script allows for greater customization of line drawings. # Content I'm adding improvements to the drawing experience on a tablet today. I'd like to demonstrate the use of three new scripts I added to the script store yesterday. Notice the buttons at the top of my page; these are super useful when drawing on a tablet. I added these using the customizable page header plugin. Each button is a shortcut to a different Excalidraw script. [* ](https://youtu.be/qbPIAZguJeo?t=0) By clicking the pen lock, I enable palm rejection. This only has an effect while the free draw tool is active. The pen lock will also disable pinch zoom. The first script I'll use today is called "Select Elements by Type." This will prompt you with a list of different types of elements in the drawing or the current selection. When you pick a type from the list, only those elements will become selected on the canvas. [* ](https://youtu.be/qbPIAZguJeo?t=45) Now we are using it to select all the free draw elements. The "Convert Free Draw to Line" will convert these selected free draw objects into lines so you can adjust your drawings by dragging the line points and fill in closed shapes with colors. Free draw shapes have many points, and you can adjust the conversion point density in settings. [* ](https://youtu.be/qbPIAZguJeo?t=91) Finally, I will use a script with a long name: "Set Background Color of Unclosed Line Object by Adding a Shadow." The clone script is simply amazing; use it to set the background color of open line objects by creating a clone of the line object. The script will set the stroke color of the clone to transparent and will add a straight line to close the object. [* ](https://youtu.be/qbPIAZguJeo?t=136) Use settings to define the default background color, the fill style, and the stroke width of the clone. By default, the clone will be grouped with the original object, but you can also disable this in settings. As you can see, using these clever scripts, the page header buttons, and the new palm rejection feature, drawing in Excalidraw using a tablet is a very fluid experience. [* ](https://youtu.be/qbPIAZguJeo?t=180) Let me know in the comments what features would make Excalidraw an even better tool for your tablet! I'm also interested to hear your script ideas; what would you want to automate in Excalidraw? If you are not familiar with Excalidraw scripts, I recommend you check out some of my videos on the subject, especially the Excalidraw automation showcase where I demonstrate 16 different scripts. [* ](https://youtu.be/qbPIAZguJeo?t=226) I hope you enjoyed today's video and that you'll pick up Excalidraw today to draw something fun and creative. Thank you! [* ](https://youtu.be/qbPIAZguJeo?t=266) # YouTube Details ## YouTube Description If you find the plugin and/or my videos helpful, please say thanks by buying me a coffee: https://ko-fi.com/zsolt If you'd like to request a feature or report a bug, please raise it on GitHub: https://github.com/zsviczian/obsidian-excalidraw-plugin If you want to connect, you can reach me (@zsviczian) in the Obsidian Members Group (OMG) on Discord or on Twitter. Links: --------- My blog: https://zsolt.blog/ Obsidian: https://obsidian.md Customizable Page Header Buttons: https://github.com/kometenstaub/customizable-page-header-buttons Select Elements of Type: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/Select%20Elements%20of%20Type.md Convert freedraw to line: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/Convert%20freedraw%20to%20line.md Set background color of unclosed line object by adding a shadow clone: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/Set%20background%20color%20of%20unclosed%20line%20object%20by%20adding%20a%20shadow%20clone.md ## YouTube Transcript [i'm adding improvements to the drawing](https://youtu.be/qbPIAZguJeo?t=0) [experience on a tablet today i'd like to](https://youtu.be/qbPIAZguJeo?t=2) [demonstrate the use of three new scripts](https://youtu.be/qbPIAZguJeo?t=4) [i added to the script store yesterday](https://youtu.be/qbPIAZguJeo?t=6) [notice the buttons at the top of my page](https://youtu.be/qbPIAZguJeo?t=10) [these are super useful when drawing on a](https://youtu.be/qbPIAZguJeo?t=12) [tablet i added these using the](https://youtu.be/qbPIAZguJeo?t=14) [customizable page header plugin each](https://youtu.be/qbPIAZguJeo?t=17) [button is a shortcut to a different](https://youtu.be/qbPIAZguJeo?t=20) [xcolidraw script](https://youtu.be/qbPIAZguJeo?t=22) [check out xcolitro automation showcase](https://youtu.be/qbPIAZguJeo?t=24) [to learn more about configuring header](https://youtu.be/qbPIAZguJeo?t=27) [buttons](https://youtu.be/qbPIAZguJeo?t=29) [by clicking the pen lock i enable palm](https://youtu.be/qbPIAZguJeo?t=30) [rejection this only has effect while the](https://youtu.be/qbPIAZguJeo?t=33) [free draw tool is active](https://youtu.be/qbPIAZguJeo?t=36) [the pen lock will also disable pinch](https://youtu.be/qbPIAZguJeo?t=38) [zoom](https://youtu.be/qbPIAZguJeo?t=40) [the first script i'll use today is](https://youtu.be/qbPIAZguJeo?t=41) [called select elements by type this will](https://youtu.be/qbPIAZguJeo?t=43) [prompt you with a list of different type](https://youtu.be/qbPIAZguJeo?t=46) [of elements in the drawing or the](https://youtu.be/qbPIAZguJeo?t=49) [current selection when you pick a type](https://youtu.be/qbPIAZguJeo?t=51) [from the list only those elements will](https://youtu.be/qbPIAZguJeo?t=54) [become selected on the canvas](https://youtu.be/qbPIAZguJeo?t=56) [now we are using it to select all the](https://youtu.be/qbPIAZguJeo?t=59) [free draw elements](https://youtu.be/qbPIAZguJeo?t=62) [convert free draw to line will convert](https://youtu.be/qbPIAZguJeo?t=64) [these selected free draw objects into](https://youtu.be/qbPIAZguJeo?t=67) [lines so you can adjust your drawings by](https://youtu.be/qbPIAZguJeo?t=70) [dragging the line points and fill in](https://youtu.be/qbPIAZguJeo?t=72) [close shapes with colors](https://youtu.be/qbPIAZguJeo?t=75) [free draw shapes have many many points](https://youtu.be/qbPIAZguJeo?t=77) [you can adjust the conversion point](https://youtu.be/qbPIAZguJeo?t=79) [density in settings](https://youtu.be/qbPIAZguJeo?t=82) [finally i will use a script with a long](https://youtu.be/qbPIAZguJeo?t=84) [name the set background color of](https://youtu.be/qbPIAZguJeo?t=87) [unclosed line object by adding a shadow](https://youtu.be/qbPIAZguJeo?t=90) [clone script is simply amazing](https://youtu.be/qbPIAZguJeo?t=93) [use it to set the background color of](https://youtu.be/qbPIAZguJeo?t=96) [open line objects by creating a clone of](https://youtu.be/qbPIAZguJeo?t=98) [the line object](https://youtu.be/qbPIAZguJeo?t=101) [the script will set the stroke color of](https://youtu.be/qbPIAZguJeo?t=103) [the clone to transparent and will add a](https://youtu.be/qbPIAZguJeo?t=105) [straight line to close the object](https://youtu.be/qbPIAZguJeo?t=108) [use settings to define the default](https://youtu.be/qbPIAZguJeo?t=111) [background color the fill style and the](https://youtu.be/qbPIAZguJeo?t=114) [stroke width of the clone](https://youtu.be/qbPIAZguJeo?t=116) [by default the clone will be grouped](https://youtu.be/qbPIAZguJeo?t=118) [with the original object but you can](https://youtu.be/qbPIAZguJeo?t=120) [also disable this in settings as you can](https://youtu.be/qbPIAZguJeo?t=123) [see using these clever scripts the page](https://youtu.be/qbPIAZguJeo?t=126) [header buttons and the new palm](https://youtu.be/qbPIAZguJeo?t=129) [rejection feature](https://youtu.be/qbPIAZguJeo?t=131) [drawing an x-color draw using a tablet](https://youtu.be/qbPIAZguJeo?t=133) [is a very fluid experience](https://youtu.be/qbPIAZguJeo?t=136) [let me know in the comments what](https://youtu.be/qbPIAZguJeo?t=138) [features would make xcolitra an even](https://youtu.be/qbPIAZguJeo?t=140) [better tool for your tablet](https://youtu.be/qbPIAZguJeo?t=142) [i'm also interested to hear your script](https://youtu.be/qbPIAZguJeo?t=146) [ideas](https://youtu.be/qbPIAZguJeo?t=148) [what would you want to automate in](https://youtu.be/qbPIAZguJeo?t=149) [x-coli draw](https://youtu.be/qbPIAZguJeo?t=150) [if you are not familiar with x-colidraw](https://youtu.be/qbPIAZguJeo?t=152) [scripts i recommend you check out some](https://youtu.be/qbPIAZguJeo?t=154) [of my videos on the subject especially](https://youtu.be/qbPIAZguJeo?t=156) [the xcoli draw automation showcase where](https://youtu.be/qbPIAZguJeo?t=159) [i demonstrate 16 different scripts](https://youtu.be/qbPIAZguJeo?t=162) [i hope you enjoyed today's video and](https://youtu.be/qbPIAZguJeo?t=165) [that you'll pick up xcolidraw today to](https://youtu.be/qbPIAZguJeo?t=168) [draw something fun and creative](https://youtu.be/qbPIAZguJeo?t=170) [thank you](https://youtu.be/qbPIAZguJeo?t=173)