This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shaderfx | |
Options: | |
-sfxnode | |
Specify the dagPath of the ShaderfxShader you are working on | |
The -sfxnode has to be supplied with (almost) every other flag | |
Example: shaderfx -sfxnode "ShaderfxShader1" -start; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Qt import QtGui | |
from Qt import QtWidgets | |
app = QtWidgets.QApplication.instance() | |
palette = app.palette() | |
roles = [ | |
QtGui.QPalette.ColorRole.WindowText, | |
QtGui.QPalette.ColorRole.Foreground, | |
QtGui.QPalette.ColorRole.Button, | |
QtGui.QPalette.ColorRole.Light, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doGet(e) { | |
var fileId = e.parameter.fileId; | |
Logger.log("fileId:"+fileId); | |
if (!fileId){ | |
Logger.log("invalid fileId."); | |
return HtmlService.createHtmlOutput(false); | |
} | |
var file = DriveApp.getFileById(fileId); | |
if (!file){ | |
Logger.log("file is not found."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
public class SelectType : MonoBehaviour | |
{ | |
[MenuItem ("Tools/SelectType #t")] | |
static void SelectViewerSetting () | |
{ | |
var target = FindObjectOfType<Light> (); | |
if (target == null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections.Generic; | |
public class ManyItemsWindow : EditorWindow | |
{ | |
static ManyItemsWindow window; | |
static readonly Vector2 windowMinSize = new Vector2 (700f, 300f); | |
const float lineHeight = 16f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UniRx; | |
using UdpReceiverUniRx; | |
using System.IO; | |
namespace Viewer | |
{ | |
public class UDPManager : SingletonMonoBehaviour<UDPManager> | |
{ | |
public UdpReceiverRx _udpReceiverRx; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using UniLinq; | |
using System.IO; | |
public class CheckSameMaterials | |
{ | |
static readonly string[] validExtensions = { ".prefab", ".fbx" }; | |
[MenuItem ("Assets/CheckSameMaterials")] |
NewerOlder