Skip to content

Instantly share code, notes, and snippets.

View yamahigashi's full-sized avatar

yamahigashi

View GitHub Profile
@yamahigashi
yamahigashi / export_dora_skin.py
Created September 20, 2012 06:37
export DoraSkin's dsw file from softimage
def export_dora_skin(path, objects=Application.Selection):
'''DoraSkin 形式でエンベロープウェイトをはきだす'''
import gear
import gear.xsi.operator as ope
# ------------------------------------------------------------------------
for obj in objects:
# object validation, having envelope
envelope_op = ope.getOperatorFromStack(obj, "envelopop")
@yamahigashi
yamahigashi / get_closest_point.py
Created October 24, 2012 11:35
オブジェクトに最寄りの頂点を返す #softimage
def get_closest_point(geo, obj, near_by=1):
'''return geo's vertex, that located closest obj position'''
g = geo.ActivePrimitive.Geometry
os_pos = get_local_positon_on_another(obj, geo)
cs = g.GetClosestLocations([os_pos.X, os_pos.Y, os_pos.Z])
pindex = g.GetPolygonIndexArray(cs)[0]
closest_polygon = g.Polygons(pindex)
@yamahigashi
yamahigashi / make_funcs.py
Created October 29, 2012 04:37
関数の動的生成
def hoehoee(arg):
''' なんか実装してね '''
return arg
#------------------------------------------------------------------------#
#------------------- 登録時の補助 ---------------------------#
#------------------------------------------------------------------------#
def _make_func_name(arg):
''' 関数名生成良い感じに細工する 禁則文字抜くとか置換するといいと思う '''
@yamahigashi
yamahigashi / SendSelectedToSoftimage.py
Last active December 16, 2015 12:09
maya plugin, send selected to softimage via TCPServer_For_Softimage (https://github.com/KelSolaar/TCPServer_For_Softimage)
# locate this file into maya plug-ins/scripted folder.
# enable Plug-in Manager
# prerequire fbxmaya.mll
import sys
import os
import socket
import maya.mel as mel
import maya.OpenMayaMPx
@yamahigashi
yamahigashi / gist:6037643
Created July 19, 2013 08:35
#softimage PlayControl.Key manipulation plugin
#---------------------------------------------------------------------#
#---------------------------------------------------------------------#
#---------------------------------------------------------------------#
import time
import win32api as win
from win32com.client import constants as c
#---------------------------------------------------------------------#
#------For Instantination---------------------------------------------#
@yamahigashi
yamahigashi / FolderProcessor.py
Last active January 19, 2016 13:04
batch export sample for fbx (or some file type) from #maya
# -*- coding: utf-8 -*-
##############################################################################
__status__ = "Prototype"
##############################################################################
import os
import re
import glob
import csv
import maya.cmds as cmds
@yamahigashi
yamahigashi / makeClip.boo
Last active December 28, 2015 09:48
Unity3d で 自動クリップ作成サンプル
class FbxImporter(AssetPostprocessor):
def OnPostprocessModel(go as GameObject):
im as ModelImporter = assetImporter
ap as string = assetPath
make_clip(im, ap)
def make_clip(importer as ModelImporter, path as string):
@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 = '[email protected]';
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?' について 述べてきました。たくさんのメールや、フォーラムの投稿すべてに目を通すつもりです。もし何か 見落としていたら知らせてください。最善を尽くします。直接メールして頂いても構わないし、 この投稿がされたフォーラムの追跡もしています。