Skip to content

Instantly share code, notes, and snippets.

View yamahigashi's full-sized avatar

yamahigashi

View GitHub Profile
@yamahigashi
yamahigashi / test_output_ports_quantity_impact_softimage.py
Last active August 26, 2015 09:10
performance test that massive output ports quantity causes large FPS degradation, when the operator has animating input(s) in SpliceSoftimage. #FabricEngine
###############################################################################
NUM_OUTPUTS = 333
NUM_INPUTS = 1
# this is the test code, softimage
# no good
# NUM_OUTPUT: 333 FPS: 9
# NUM_OUTPUT: 128 FPS: 22
945c945,946
#get inf bone list
- #fullJointList = pm.skinPercent(meshSkinCluster,query=True, transform=None)
+ fullJointList = pm.skinCluster(meshSkinCluster, query=True, inf=True)
if len(vertexList) > lagLimit:
// Easy Gantt のメニュー部をスクロースすると固定ヘッダ化
//
// Path pattern: /easy_gantt/.*
// Type: JavaScript
$(function() {
var gantt_menu = $( '#easy_gantt_menu' );
var offset = gantt_menu.offset();
var originalPos = gantt_menu.css( 'position' );
@yamahigashi
yamahigashi / redmine_view_custom_dashboard-overlay_issues_manager.js
Last active January 27, 2016 09:58
// Redmine View Customize script // enable on Dashboard Ticket Edit with overlay edit, like trello
// Redmine Dashboard のチケット編集をページ遷移なしに
//
// https://github.com/Gera-IT/Redmine-Fast-Issues-Edit.git
// redmine_overlay_issues_manager
//
// Path pattern: /rdb/taskboard.*
// Type: JavaScript
$(function() {
var overlayTicketEdit = function() {
@yamahigashi
yamahigashi / pyapi2_bulk_parentConstraint.py
Created February 1, 2016 11:10
maya python api 2.0 exploration, banned PyMel / maya.cmds
# -*- coding: utf-8 -*-
import re
import anyconfig
from maya.api import OpenMaya as OpenMaya2
##############################################################################
@yamahigashi
yamahigashi / MTypeId.tsv
Last active September 18, 2019 02:49
maya MTypeId listing (incomplete)
typeId typeName classification attributeCount
0x345dad01 substance texture/2d 38L
0x346dad01 substanceOutput drawdb/shader/texture/2d/substanceOutput:texture/2d 36L
0x41424141 animBlendNodeAdditiveDA animation 12L
0x41424146 animBlendNodeAdditiveF animation 12L
0x41424149 animBlendNodeAdditiveI32 animation 12L
0x4142414c animBlendNodeAdditiveDL animation 12L
0x41424153 animBlendNodeAdditiveI16 animation 12L
0x4142424f animBlendNodeBoolean animation 11L
0x41424641 animBlendNodeAdditiveFA animation 12L
@yamahigashi
yamahigashi / change_current_active_handle_axis.mel
Created March 17, 2016 10:24
change (or toggle view space) current active handle for Autodesk Maya
proc change_current_active_handle( int $axis ){
string $cmd = "";
string $tool = "";
string $current_ctxt = `currentCtx`;
switch( $current_ctxt ){
case "moveSuperContext":
case "manipMoveContext":
if (`selectPref -q -xformNoSelect` == true ){
selectPref -xformNoSelect false;
} else {
selectPref -xformNoSelect true;
}
@yamahigashi
yamahigashi / sticky_toggle_xformNoSelect.py
Last active March 30, 2016 11:56
for maya's hotkey runtime command, define commands key press begin, key press and key release within one command.
'''
# ショートカットキーを押した時、押している間、離した時に何かをするスクリプト
# このスクリプト起動時のキー押下状態保存してそのキーの持続状態を判定している
#
#  持続時間中に何かをするのでないのであれば、このようなスクリプトを使用するの
#  でなく素直に2つコマンド用意し同じキーに on press / on release としてそれぞれ
#  のコマンドを割り当てるほうが良い
#
#  winapi 使用するので win 専用
#
# in maya
# -*- coding: utf-8 -*-
import re
import json
import maya.mel as mel
from maya.api import OpenMaya as OpenMaya2
import FabricEngine.Core as fe