zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.06k stars 219 forks source link

Help in Image Occlusion #1834

Open Ume-Saruma opened 3 months ago

Ume-Saruma commented 3 months ago

Hello! I have a very specific doubt regarding the Image Occlusion feature in Excalidraw. https://www.youtube.com/watch?v=ZnCcMtWj8CA -the example and the top comment and replies being my concern

In short, is there a way to make it so a particular shape (on the text) becomes translucent or hides itself (but remains where it is) if i click on it or if I toggle on/off a particular feature? Preferably individually, so I can check only that particular label which I missed out on.

Somewhat similar to that in Anki.

In this video, the image itself had no names or labels. I would to insert an already ready table (from my textbook) and using this feature, test myself on it. I may also use review notes function in spaced repetition but lets see.

vikrant123pundir commented 3 months ago

I'm afraid that there is not any functionality like that in excalidraw (I am a new user myself and trying to wrap my head around its workflow and features)/ but you can use a different trick for your use case.

  1. Make a box around the text which you want to hide.
  2. put a background color in it so as to hide the underlying text.
  3. right click the box element > select "create link" ( you'll find this menu in the lower part of right click menu above "Duplicate")
  4. put the name or "text" in the box. (Yes, that's the catch, you will still need to type the text).

Now when you will click on the element it will show the text which you put in the link box.

Ume-Saruma commented 3 months ago
  1. put the name or "text" in the box. (Yes, that's the catch, you will still need to type the text).

That's exactly the inconvenience which I want to avoid. I have huge tables to study because of Computer Science (the syllabus is teaching us microprocessors and a whole lot of complicated things and tables...welcome to 12th state board ig)

Atleast for the small diagrams and tables I'll use that, but for bigger tables/images I'll really have to find something else.

vikrant123pundir commented 3 months ago

Well in that case you can use windows power toys. it has may features incuding built in OCR feature. All you need to do is select the area of the text and the text will get copied to the clipboard, then you can paste it at your desired location in excalidraw. https://github.com/microsoft/PowerToys

Although, excalidraw itself as well has OCR feature, but i have not used it even one. "power toys ocr" is working fine for my workflow.

Ume-Saruma commented 3 months ago

That's great then, but as a Mac User would I still be able to make use of it? If yes then I'll go ahead with that for the time being!