Skip to content

Instantly share code, notes, and snippets.

@dgovil
dgovil / mayaFileImportNodeQuery.py
Created January 21, 2017 04:20
Finding what nodes were imported from a Maya file
# First lets import our Maya command library
from maya import cmds
# Then we import our file. In this case I'm using a hardcoded value
# But notice the returnNewNodes parameter that tells it to give us back any imported nodes
# This may contain nodes we don't want
# So we'll need to shorten it down
nodes = cmds.file('C:/Users/dhruv/Documents/maya/controllerLibrary/bigdonut.ma',
i=True, returnNewNodes=True)

基本手順

mkdir ~/.vim
cd ~/.vim
mkdir colors
git clone https://github.com/tomasr/molokai
mv molokai/colors/molokai.vim ~/.vim/colors/
vi ~/.vimrc
# -*- coding: utf-8 -*-
import sys
from PySide import QtCore, QtGui
class Ui_testGUI(object):
def setupUi(self, testGUI):
testGUI.setObjectName("testGUI")
testGUI.resize(310, 295)
testGUI.setStyleSheet("background-color: rgb(50, 50, 100);\n"
"color: rgb(255, 255, 255);")
@tm8r
tm8r / konami_command.py
Last active December 2, 2017 08:04
Mayaでコナミコマンド
# -*- coding: utf-8 -*-
u"""KonamiCommand"""
from __future__ import absolute_import, division, print_function
from Qt import QtGui, QtWidgets
from maya.app.general.mayaMixin import MayaQWidgetBaseMixin
import time
@tm8r
tm8r / embed_test.py
Last active August 23, 2024 11:37
Mayaでシーンファイルに情報を埋め込む
from maya import cmds
print(cmds.fileInfo("custom_note",q=True))
cmds.fileInfo("custom_note", "test")
print(cmds.fileInfo("custom_note",q=True))
# fileInfoだけ変更したのちにFile>SaveSceneを実行すると変更なしと判定されるので、差し支えなければcmds.fileで強制的に保存した方が良い
cmds.file(save=True)
# result:
# []
# [u'test']
@mtei
mtei / helix_keyboard_build_tool_memo.md
Last active August 24, 2023 08:19
キーボード自作、特に Helix キーボードキットの製作に最低必要な工具のメモ
@voluntas
voluntas / death_march.md
Last active April 29, 2025 05:49
デスマーチが起きる理由 - 3つの指標

デスマーチが起きる理由 - 3つの指標

著者: 青い鴉(ぶるくろ)さん @bluecrow2

これは結城浩さんの運用されていた YukiWiki に当時 Coffee 様 (青い鴉(ぶるくろ)さん)がかかれていた文章です。 ただ 2018 年 3 月 7 日に YukiWiki が運用停止したため消えてしまいました。その記事のバックアップです。

今は 404 ですが、もともとの記事の URL は http://www.hyuki.com/yukiwiki/wiki.cgi?%A5%C7%A5%B9%A5%DE%A1%BC%A5%C1%A4%AC%B5%AF%A4%AD%A4%EB%CD%FD%CD%B3 になります。

昔、自分がとても感銘を受けた文章なので、このまま読めなくなるのはとてももったいないと思い、バックアップとして公開しています。

xcargs = ""
xcargs += " IDEBuildOperationMaxNumberOfConcurrentCompileTasks=16"
xcargs += " GCC_GENERATE_DEBUGGING_SYMBOLS=NO DEBUG_INFORMATION_FORMAT=dwarf"
xcargs += " ONLY_ACTIVE_ARCH=YES VALID_ARCHS=arm64"
xcargs += " CC=\"ccacheclang\" GCC_PRECOMPILE_PREFIX_HEADER=NO" if File.exist?("/usr/local/bin/ccacheclang")
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;