Skip to content

Commit

Permalink
fix: indentation (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravencentric authored Sep 18, 2023
1 parent 9121013 commit 8ef8f26
Showing 1 changed file with 27 additions and 25 deletions.
52 changes: 27 additions & 25 deletions docs/tutorials/comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ Comparisons are frequently used within the enthusiast community to compare the v
6. Install [vs-preview](https://github.com/Irrational-Encoding-Wizardry/vs-preview):
```powershell
pip install vspreview
```
```powershell
pip install vspreview
```
### The comparison script
Expand Down Expand Up @@ -167,14 +167,16 @@ set_output(clip3, name=source3)
==-
3. Now to use VS-Preview you just need to run this command in your terminal, or paste it into a text file and save it as `comp.bat`

```powershell
vspreview "C:\Path\To\comp.vpy"
```
```powershell
vspreview "C:\Path\To\comp.vpy"
```
- To get the path, shift and right-click the comp.py file you just made, and select `Copy as path`
Now, when making comps you just edit `comp.vpy` to include the necessary file paths, comment/uncomment lines as required, edit the crop, trim, upscale, etc values when needed, and then run `comp.bat` or run `vspreview comp.vpy` directly from your terminal.
#### Understanding the comparison script
Unsure of how to go about editing the comp script? The panel below will explain how each section works.
==- :icon-file: Understanding comp.vpy
Expand Down Expand Up @@ -285,21 +287,21 @@ There are 3 methods of screenshotting:
- **Mark screenshots quicker by setting the mark frame button to enter**
Open `%localappdata%\Programs\Python\Python311\Lib\site-packages\vspreview\toolbars\comp` and edit `toolbar.py`
Open `%localappdata%\Programs\Python\Python311\Lib\site-packages\vspreview\toolbars\comp` and edit `toolbar.py`
- Line 552: Replace `QKeyCombination(Qt.Modifier.CTRL, Qt.Key.Key_Space).toCombined(), self.add_current_frame_to_comp` with `(Qt.Key_Return), self.add_current_frame_to_comp`
- Line 552: Replace `QKeyCombination(Qt.Modifier.CTRL, Qt.Key.Key_Space).toCombined(), self.add_current_frame_to_comp` with `(Qt.Key_Return), self.add_current_frame_to_comp`
- **Swap binds to save your pinky finger, so you no longer have to hold shift all the time**
Open `%localappdata%\Programs\Python\Python311\Lib\site-packages\vspreview\toolbars\playback\` and edit `toolbar.py`
- Select lines 180-187, delete them, and paste
- Select lines 180-187, delete them, and paste
```python
self.main.add_shortcut(QKeyCombination(Qt.SHIFT, Qt.Key.Key_Left), self.seek_to_prev_button.click)
self.main.add_shortcut(QKeyCombination(Qt.SHIFT, Qt.Key.Key_Right), self.seek_to_next_button.click)
self.main.add_shortcut(Qt.Key.Key_Left, self.seek_n_frames_b_button.click)
self.main.add_shortcut(Qt.Key.Key_Right, self.seek_n_frames_f_button.click)
```
```python
self.main.add_shortcut(QKeyCombination(Qt.SHIFT, Qt.Key.Key_Left), self.seek_to_prev_button.click)
self.main.add_shortcut(QKeyCombination(Qt.SHIFT, Qt.Key.Key_Right), self.seek_to_next_button.click)
self.main.add_shortcut(Qt.Key.Key_Left, self.seek_n_frames_b_button.click)
self.main.add_shortcut(Qt.Key.Key_Right, self.seek_n_frames_f_button.click)
```
+++ Bolt-action
Expand All @@ -324,21 +326,21 @@ self.main.add_shortcut(Qt.Key.Key_Right, self.seek_n_frames_f_button.click)
- **Take screenshots quicker by setting the save image button to enter**
Open `%localappdata%\Programs\Python\Python311\Lib\site-packages\vspreview\toolbars\misc` and edit `toolbar.py`
- Line 166: Replace `QKeyCombination(Qt.Modifier.SHIFT, Qt.Key.Key_S).toCombined(), self.save_frame_as_button.click` with `(Qt.Key_Return), self.save_frame_as_button.click`.
- If you can't spam fast enough, in vs-preview click settings and set PNG compression to a lower level (higher value).
- Line 166: Replace `QKeyCombination(Qt.Modifier.SHIFT, Qt.Key.Key_S).toCombined(), self.save_frame_as_button.click` with `(Qt.Key_Return), self.save_frame_as_button.click`.
- If you can't spam fast enough, in vs-preview click settings and set PNG compression to a lower level (higher value).
- **Swap binds to save your pinky finger, so you no longer have to hold shift all the time**
Open `%localappdata%\Programs\Python\Python311\Lib\site-packages\vspreview\toolbars\playback\` and edit `toolbar.py`
Open `%localappdata%\Programs\Python\Python311\Lib\site-packages\vspreview\toolbars\playback\` and edit `toolbar.py`
- Select lines 180-187, delete them, and paste the following, making sure the indentation of the lines match (using spaces).
- Select lines 180-187, delete them, and paste the following, making sure the indentation of the lines match (using spaces).
```python
self.main.add_shortcut(QKeyCombination(Qt.SHIFT, Qt.Key.Key_Left), self.seek_to_prev_button.click)
self.main.add_shortcut(QKeyCombination(Qt.SHIFT, Qt.Key.Key_Right), self.seek_to_next_button.click)
self.main.add_shortcut(Qt.Key.Key_Left, self.seek_n_frames_b_button.click)
self.main.add_shortcut(Qt.Key.Key_Right, self.seek_n_frames_f_button.click)
```
```python
self.main.add_shortcut(QKeyCombination(Qt.SHIFT, Qt.Key.Key_Left), self.seek_to_prev_button.click)
self.main.add_shortcut(QKeyCombination(Qt.SHIFT, Qt.Key.Key_Right), self.seek_to_next_button.click)
self.main.add_shortcut(Qt.Key.Key_Left, self.seek_n_frames_b_button.click)
self.main.add_shortcut(Qt.Key.Key_Right, self.seek_n_frames_f_button.click)
```
#### Post-processing
Expand Down

0 comments on commit 8ef8f26

Please sign in to comment.