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
@yamahigashi
yamahigashi / calc_cog_global_position.py
Last active August 29, 2015 13:56
選択オブジェクトを cog の高さで整列する, calculate object's cog position in global #softimage
def calc_cog_global_position(obj):
''' calculate objects cog position in global space. returns vector3 '''
#x, y, z, b1, b2, b3 = Application.Selection(0).ActivePrimitive.Geometry.GetBoundingBox()
#v = XSIMath.CreateVector3(x, y, z)
if obj.ActivePrimitive.Geometry is not None:
x = obj.ActivePrimitive.Geometry.Points
v = XSIMath.CreateVector3()
for p in x:
v.Add( v, p.Position)
@yamahigashi
yamahigashi / Capchan3.js
Last active August 29, 2015 13:56
Capchan3.1 for Softimage. 潤樹 @JunkiTheJunkie さんのプラグインの拡張 選択オブジェクトのみをキャプチャ http://homepage3.nifty.com/jjj/XSIFiles/Plugin/Animation/Capchan3/Capchan3.html
function XSILoadPlugin( in_reg )
{
in_reg.Author = 'junki';
in_reg.Name = 'Capchan3';
in_reg.Email = 'junkithejunkie@gmail.com';
in_reg.URL = 'http://junkithejunkie.cocolog-nifty.com/';
in_reg.Major = 1;
in_reg.Minor = 0;
in_reg.RegisterCommand('Capchan3','Capchan3');

Fabric Engine, Softimage そしてVFX業界
2014年3月5日、Paul Doyle投稿

皆さんこんにちは。 ここ最近 Softimage に起こったことに関連し、いくつかのMLやフォーラムでで Fabric Engine の 'What now?' について 述べてきました。たくさんのメールや、フォーラムの投稿すべてに目を通すつもりです。もし何か 見落としていたら知らせてください。最善を尽くします。直接メールして頂いても構わないし、 この投稿がされたフォーラムの追跡もしています。

@yamahigashi
yamahigashi / locateDummy.mel
Last active August 29, 2015 13:57
maya のいろいろ支援スニペット mel
global float $BIGNUMBER_MINUS = 100;
global float $BIGNUMBER_PLUS = 1000;
global proc string stripNamespace(string $n){
string $exp = "^.*:";
string $new = `substitute $exp $n ""`;
return $new;
};
@yamahigashi
yamahigashi / expand_schematic_nodes.py
Last active August 29, 2015 14:06
expand under selected nodes on Schematic View #softimage
import siutils
def expand_nodes():
viewname = 'Schematic'
activelayout = Application.Desktop.ActiveLayout
v = activelayout.FindView( viewname )
if v == None:
siutils.log('Creating new schematic...: %s' % (viewname))
@yamahigashi
yamahigashi / filter_constraint.py
Created November 18, 2014 09:32
mel filter constraint from `ls -t "transform" -dag -o`;
import re
import maya.cmds as cmds
exp = re.compile("_\w+Constraint\d*$")
liste = cmds.ls(exactType="transform", dag=True)
liste = filter(lambda x: not exp.search(x), liste)
@yamahigashi
yamahigashi / my_motionbuilder_util.py
Created December 24, 2014 05:36
motinbuilder python utility
# -*- coding: utf-8 -*-
# MotionBulider 用のユーティリティ関数集
###############################################################################
import pyfbsdk as fb
#import pyfbsdk_additions as fb_add
###############################################################################
fbsys = fb.FBSystem()
app = fb.FBApplication()
@yamahigashi
yamahigashi / animationPostprocess.boo
Created March 16, 2015 08:39
Auto duplicate animation clips at PostprocessModelImport #unity3d
import UnityEngine
import UnityEditor
import System
import System.IO
import System.Text.RegularExpressions
//--------------------------------------------------------------------------//
class Mot:
public name as string
@yamahigashi
yamahigashi / inspect_property.js
Created June 5, 2015 04:21
inspect property with width/height #softimage
function inspect_property(propname, width, height){
view = Desktop.ActiveLayout.CreateView("Property Panel", propname);
view.BeginEdit();
//view.Move(posx, posy)
view.Resize(width, height);
view.SetAttributeValue("targetcontent", propname);
view.EndEdit();
}