Skip to content

Commit ca9cae7

Browse files
StartAutomatingStartAutomating
authored andcommitted
Hide-OBS: Fixing parameter signature (re #67)
1 parent 69252d2 commit ca9cae7

1 file changed

Lines changed: 163 additions & 0 deletions

File tree

docs/Show-OBS.md

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
Show-OBS
2+
--------
3+
4+
5+
6+
7+
### Synopsis
8+
Shows content in OBS
9+
10+
11+
12+
---
13+
14+
15+
### Description
16+
17+
Shows content in Open Broadcasting Studio
18+
19+
20+
21+
---
22+
23+
24+
### Examples
25+
#### EXAMPLE 1
26+
```PowerShell
27+
<polygon points="0 0 0 1 1 1 1 0" fill="blue" />
28+
</svg>' | Set-Content .\BlueRect.svg
29+
Show-OBS -FilePath .\BlueRect.svg
30+
```
31+
32+
#### EXAMPLE 2
33+
```PowerShell
34+
Show-OBS -FilePath *excited* -RootPath $home\Pictures\Gif
35+
```
36+
37+
38+
39+
---
40+
41+
42+
### Parameters
43+
#### **FilePath**
44+
45+
The path or URI to show in OBS.
46+
47+
48+
49+
50+
51+
52+
|Type |Required|Position|PipelineInput |Aliases |
53+
|----------|--------|--------|---------------------|-------------------------------------|
54+
|`[String]`|true |1 |true (ByPropertyName)|FullName<br/>Src<br/>Uri<br/>FileName|
55+
56+
57+
58+
#### **Name**
59+
60+
The name of the source in OBS.
61+
If this is not provided, it will be derived from the -FilePath.
62+
63+
64+
65+
66+
67+
68+
|Type |Required|Position|PipelineInput |
69+
|----------|--------|--------|---------------------|
70+
|`[String]`|false |2 |true (ByPropertyName)|
71+
72+
73+
74+
#### **RootPath**
75+
76+
A root path.
77+
If not provided, this will be the root of the -FilePath (if it is a filepath).
78+
If the file path was a URI, the root path will be ignored.
79+
80+
81+
82+
83+
84+
85+
|Type |Required|Position|PipelineInput |
86+
|----------|--------|--------|---------------------|
87+
|`[String]`|false |3 |true (ByPropertyName)|
88+
89+
90+
91+
#### **Scene**
92+
93+
The name of the scene.
94+
If no scene name is provided, the current program scene will be used.
95+
96+
97+
98+
99+
100+
101+
|Type |Required|Position|PipelineInput |
102+
|----------|--------|--------|---------------------|
103+
|`[String]`|false |4 |true (ByPropertyName)|
104+
105+
106+
107+
#### **Opacity**
108+
109+
The opacity to use for the input.
110+
If not provided, will default to 2/3rds.
111+
Will only be used when showing a browser source with a -FilePath
112+
113+
114+
115+
116+
117+
118+
|Type |Required|Position|PipelineInput |
119+
|----------|--------|--------|---------------------|
120+
|`[Double]`|false |5 |true (ByPropertyName)|
121+
122+
123+
124+
#### **SourceParameter**
125+
126+
Any parameters to pass to the source command.
127+
128+
129+
130+
131+
132+
133+
|Type |Required|Position|PipelineInput |
134+
|---------------|--------|--------|---------------------|
135+
|`[IDictionary]`|false |6 |true (ByPropertyName)|
136+
137+
138+
139+
#### **Force**
140+
141+
If set, will check if the source exists in the scene before creating it and removing any existing sources found.
142+
If not set, you will get an error if a source with the same name exists.
143+
144+
145+
146+
147+
148+
149+
|Type |Required|Position|PipelineInput |
150+
|----------|--------|--------|---------------------|
151+
|`[Switch]`|false |named |true (ByPropertyName)|
152+
153+
154+
155+
156+
157+
---
158+
159+
160+
### Syntax
161+
```PowerShell
162+
Show-OBS [-FilePath] <String> [[-Name] <String>] [[-RootPath] <String>] [[-Scene] <String>] [[-Opacity] <Double>] [[-SourceParameter] <IDictionary>] [-Force] [<CommonParameters>]
163+
```

0 commit comments

Comments
 (0)