Skip to content

Instantly share code, notes, and snippets.

@HiromuKato
HiromuKato / Program.cs
Created Jun 12, 2020
MRTKのソースリストをcsv形式に変換するVisual Studioのコンソールアプリ 参考:https://www.hiromukato.com/entry/2020/06/13/004434
View Program.cs
using System.IO;
using System.Text;
namespace MRTKSourceListCreator
{
class Program
{
static void Main(string[] args)
{
// Assetsフォルダで以下DOSコマンドを実行して出力したファイル
@HiromuKato
HiromuKato / Cat.cs
Last active Nov 7, 2019
ねこちゃんオブジェクトを表示するスクリプト
View Cat.cs
using UnityEngine;
using UnityEditor;
[ExecuteInEditMode]
public class Cat : MonoBehaviour
{
public bool good = true;
[MenuItem("GameObject/3D Object/Cat", false, 10)]
static void CreateCat(MenuCommand menuCommand)
{
@HiromuKato
HiromuKato / HoudiniTello.py
Created Mar 26, 2019
HoudiniからTELLOを操作するスクリプト
View HoudiniTello.py
from PySide2 import QtWidgets
import socket
def onCreateInterface():
widget = Tello()
return widget
class Tello(QtWidgets.QWidget):
def __init__(self, parent=None):
QtWidgets.QWidget.__init__(self, parent)
@HiromuKato
HiromuKato / main.js
Last active Jan 27, 2019
Photoshop(のジェネレータ)からTELLOを操作するスクリプト
View main.js
(function() {
"use strict";
var PLUGIN_ID = require("./package.json").name;
var MENU_ID = "fp";
var dgram = require('dgram');
var PORT = 8889;
var HOST = '192.168.10.1';
var client = dgram.createSocket('udp4');
@HiromuKato
HiromuKato / telloControlFor3DSMax.py
Created Dec 17, 2018
3DS MAXからTELLOを操作するスクリプト
View telloControlFor3DSMax.py
from PySide2 import QtWidgets
import MaxPlus
import socket
class Tello(QtWidgets.QDialog):
def __init__(self, parent=MaxPlus.GetQMaxMainWindow()):
super(Tello, self).__init__(parent)
self.setWindowTitle("Tello Controller")
self.initUI()
@HiromuKato
HiromuKato / telloControl.py
Created Aug 25, 2018
MAYAからTELLOを操作するスクリプト
View telloControl.py
# -*- coding: utf-8 -*-
import maya.cmds as cmds
import socket
import sys
import time
class Tello :
def __init__(self) :
# Create Window
if cmds.window("Obj_EditWindow",exists=True):
@HiromuKato
HiromuKato / HoloRecorder.py
Created Nov 12, 2017
Pythonista application which controls HoloLens recording.
View HoloRecorder.py
import ui
import console
import requests
import base64
isRecording = False
url = "192.168.0." # Input Device Portal url
token = ""
def btnAuth_tapped(sender):
@HiromuKato
HiromuKato / ChangeIconVisibility.cs
Created Aug 20, 2017
Unity SceneViewのアイコンを表示・非表示するエディタ拡張
View ChangeIconVisibility.cs
using System;
using System.Reflection;
using UnityEditor;
using UnityEngine;
public static class ChangeIconVisibility
{
// アイコンの表示・非表示フラグ
static bool visibility = false;
You can’t perform that action at this time.