Skip to content

Commit

Permalink
Merge pull request #19 from Kragrathea/TestBranch
Browse files Browse the repository at this point in the history
Test branch
  • Loading branch information
Kragrathea committed Oct 21, 2019
2 parents 0a8c9b3 + 894c0eb commit 4fbc376
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion octoprint_prettygcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ def get_update_information(self):
# ("OctoPrint-PluginSkeleton"), you may define that here. Same goes for the other metadata derived from setup.py that
# can be overwritten via __plugin_xyz__ control properties. See the documentation for that.
__plugin_name__ = "PrettyGCode"
global __plugin_implementation__ = PrettyGCodePlugin()
def __plugin_load__():
global __plugin_implementation__
__plugin_implementation__ = PrettyGCodePlugin()

global __plugin_hooks__
__plugin_hooks__ = {
"octoprint.plugin.softwareupdate.check_config": __plugin_implementation__.get_update_information
}

1 change: 0 additions & 1 deletion octoprint_prettygcode/static/css/prettygcode.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
.gwin #webcam_rotator {
bottom: 20px;
right: 40px;
width:360px;
position: absolute;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
z-index:5;
Expand Down
9 changes: 5 additions & 4 deletions octoprint_prettygcode/templates/prettygcode_tab.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Options:</h4>
<li><b>Sync to progress.</b> Sync the 3d view to approximately where the printer is printing. See notes on syncing below.</li>
<li><b>Fatlines.</b> Display lines with thickness. This looks much better but can cause a performance hit on slower machines.</li>
<li><b>Mirror.</b> Display a mirrored version of the object below the print bed. This looks better and allows you to see additional parts of the GCode but is a bit slower.</li>
<li><b>Orbit when idle.</b> After 5 seconds of no mouse/camera movement the camera will orbit around the center.</li>
<li><b>Reflections.</b> Realtime reflections in the 3d nozzle. This is pure eye candy and can be disabled for more performance.</li>
</ul>

Expand All @@ -63,14 +64,14 @@ PrettyGCode uses WebGL and Three.js for rendering. WebGL may not be supported on
My primary use for this plugin is to visually show print status when I stream my prints on Twitch. I use OBSStudio for streaming, but to get the browser plugin to render the 3D view you need to launch OBS with the --enable-gpu flag:<br>

<h4>
UI:</h4>
If you understand how to use CSS you can use the below section to customize the user interface. For example, to make the web camera bigger in fullscreen mode paste this code into the CSS window:
UI modifications</h4>
If you understand how to use CSS you can use the below section to customize the user interface. For example, to make the web camera smaller in fullscreen mode paste this code into the CSS window:

<br>
<code>
/* Make webcam bigger in fullscreen mode. */
/* Make webcam smaller in fullscreen mode. */
.pgfullscreen .gwin #webcam_rotator {
width: 640px;
width: 360px;
}
</code>
<br>
Expand Down

0 comments on commit 4fbc376

Please sign in to comment.