Skip to content

Instantly share code, notes, and snippets.

Avatar

Aldo Hoeben fieldOfView

View GitHub Profile
@fieldOfView
fieldOfView / theme.json
Last active May 2, 2021
A stub theme for Cura that has custom colors in layer view
View theme.json
{
"metadata": {
"name": "Ultimaker Dark custom layerview colors",
"inherits": "cura-dark"
},
"colors": {
"layerview_ghost": [31, 31, 31, 95],
"layerview_none": [255, 255, 255, 255],
"layerview_inset_0": [29, 200, 200, 255],
@fieldOfView
fieldOfView / overhang.shader
Last active Aug 28, 2020
Patched version of overhang.shader that highlights the parts of models that touch the builtplate
View overhang.shader
[shaders]
vertex =
uniform highp mat4 u_modelMatrix;
uniform highp mat4 u_viewMatrix;
uniform highp mat4 u_projectionMatrix;
uniform highp mat4 u_normalMatrix;
attribute highp vec4 a_vertex;
attribute highp vec4 a_normal;
@fieldOfView
fieldOfView / theme.json
Created May 17, 2020
A stub theme for Cura that has non-transparent helpers in layer view
View theme.json
{
"metadata": {
"name": "Ultimaker Dark non-transparent helpers",
"inherits": "cura-dark"
},
"colors": {
"layerview_support": [0, 255, 255, 255],
"layerview_support_infill": [0, 255, 255, 255],
"layerview_support_interface": [63, 127, 255, 255]
@fieldOfView
fieldOfView / theme.json
Created Oct 24, 2019
A stub theme for Cura that has larger text
View theme.json
{
"metadata": {
"name": "Ultimaker Larger",
"inherits": "cura-light"
},
"fonts": {
"default": {
"size": 1.1,
"weight": 40,
@fieldOfView
fieldOfView / NetworkMJPGImage
Created Oct 25, 2018
A PyQt 5 custom QML widget to display MJPEG streams such as those created by mjpegstreamer
View NetworkMJPGImage
# Copyright (c) 2018 Aldo Hoeben / fieldOfView
# NetworkMJPGImage is released under the terms of the LGPLv3 or higher.
from PyQt5.QtCore import QUrl, pyqtProperty, pyqtSignal, pyqtSlot, QRect, QByteArray
from PyQt5.QtGui import QImage, QPainter
from PyQt5.QtQuick import QQuickPaintedItem
from PyQt5.QtNetwork import QNetworkRequest, QNetworkReply, QNetworkAccessManager
from UM.Logger import Logger
@fieldOfView
fieldOfView / ultimaker2_mag.def.json
Created Aug 27, 2018
A variation of the Ultimaker 2 definition for Cura 2 and newer that has no disallowed areas
View ultimaker2_mag.def.json
{
"version": 2,
"name": "Ultimaker 2 Magnetic",
"inherits": "ultimaker2",
"metadata": {
"quality_definition": "ultimaker2"
},
"overrides": {
"machine_disallowed_areas": {
@fieldOfView
fieldOfView / Replacement_Patterns.html
Created Jul 30, 2018
A quick and dirty overview of available settings and replacement patterns
View Replacement_Patterns.html
<html>
<head>
<meta charset="utf-8"/>
<title>Settings and replacement patterns</title>
<script type="text/javascript">
function showJSON(file) {
var xobj = new XMLHttpRequest();
xobj.overrideMimeType("application/json");
xobj.open('GET', file, false);
xobj.onreadystatechange = function () {
@fieldOfView
fieldOfView / custom_belt_printer.def.json
Created Jul 26, 2018
A definition for a custom belt-style printer, to be used with BlackBelt Cura 3.4.2
View custom_belt_printer.def.json
{
"version": 2,
"name": "Custom belt-printer",
"inherits": "beltprinter",
"metadata": {
"visible": true,
"author": "fieldOfView",
"manufacturer": "Custom",
"category": "Custom",
"file_formats": "text/x-gcode",
@fieldOfView
fieldOfView / theme.json
Created Mar 15, 2018
A stub theme for Cura that has dark text on medium grey tooltips
View theme.json
{
"metadata": {
"name": "Grey tooltips",
"inherits": "cura-light"
},
"colors": {
"tooltip_text": [8, 0, 0, 255],
"button_tooltip": [225, 225, 225, 255],
"tooltip": [225, 225, 225, 255]
@fieldOfView
fieldOfView / theme.json
Created Feb 14, 2018
A stub theme for Cura that makes the sidebar more compact (at the cost of aesthtics)
View theme.json
{
"metadata": {
"name": "Compact sidebar",
"inherits": "cura-light"
},
"sizes": {
"sidebar": [30.0, 10.0],
"sidebar_margin": [1.71, 0.43],