This file contains hidden or 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
| """ | |
| TouchDesigner WebRTC Callback Script | |
| This script handles WebRTC connection management and data channel communication in TouchDesigner. | |
| Note: This script uses TouchDesigner built-in functions and variables: | |
| - op(): Access to TouchDesigner operators | |
| - me: Reference to the current component | |
| - parent(): Access to parent component parameters | |
| - logger: TouchDesigner's logging component | |
| """ |
This file contains hidden or 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
| import maya.cmds as cmds | |
| import ywta.deform.blendshape as blendshape | |
| import maya.mel as mel | |
| # 現在のメッシュのをBlendShapeターゲットに追加 | |
| def add_blendshape_target_with_frame(mesh, frame): | |
| # blendspageがなければ作成 | |
| blendshape_name = blendshape.get_blendshape_node(mesh) |
This file contains hidden or 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
| import maya.cmds as cmds | |
| import maya.mel as mel | |
| from functools import partial | |
| import os | |
| # ネームスペースを消そうとするが、ReferenceされたNamespaceは削除できないようになってる。 | |
| # defaults = ['UI', 'shared'] | |
| # namespaces = [ns for ns in cmds.namespaceInfo(listOnlyNamespaces=True, recurse=True) if ns not in defaults] | |
| # for ns in namespaces: print(ns) | |
| # namespaces.sort(key=len, reverse=True) |
This file contains hidden or 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 pathlib import Path | |
| import time | |
| import modal | |
| import shutil | |
| import subprocess | |
| import sys | |
| import shlex | |
| import os | |
| # 色んなパスの定義 |
This file contains hidden or 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
| import maya.cmds as cmds | |
| # StartJointからEndJointに関連付けられているJointをListで取得 | |
| # Childが一つの想定なので骨が複数あるとおかしくなるかも。 | |
| def get_all_spline_joints(joint_list, parent_joint, last_joint): | |
| child = cmds.listRelatives(parent_joint, children=True, type="joint") | |
| joint_list.append(child[0]) | |
| if child and last_joint not in child: | |
| get_all_spline_joints(joint_list, child[0], last_joint) | |
| else: |
This file contains hidden or 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
| import maya.cmds as cmds | |
| selected_verts = cmds.ls(selection=True, flatten=True) | |
| if len([vert for vert in selected_verts if 'vtx' in vert]) is 0: | |
| cmds.warning("頂点が選択されていません。") | |
| else: | |
| total_pos = [0.0, 0.0, 0.0] | |
| for vert in selected_verts: | |
| vert_pos = cmds.pointPosition(vert, w=True) |
This file contains hidden or 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
| import maya.cmds as cmds | |
| selected_joint = cmds.ls(selection=True, flatten=True) | |
| for jnt in selected_joint: | |
| tr = cmds.ls(jnt, type="transform") | |
| parent_tr = cmds.listRelatives(tr, parent=True, fullPath=False) | |
| if parent_tr: | |
| rot = cmds.getAttr(parent_tr[0] + ".jointOrient") |
This file contains hidden or 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
| #pragma once | |
| #include <stdio.h> | |
| #include <string> | |
| #include <WinSock2.h> | |
| #include <WS2tcpip.h> | |
| using namespace std; | |
| class UDPClient | |
| { |
This file contains hidden or 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
| import os | |
| import bpy | |
| from bpy_extras.object_utils import AddObjectHelper, object_data_add | |
| #https://dskjal.com/blender/bone-script.html | |
| def init(): | |
| active = bpy.context.active_object | |
This file contains hidden or 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
| SET MAYABATCH="C:\Program Files\Autodesk\Maya2020\bin\mayabatch.exe" | |
| SET mayafile=%1 | |
| SET outfile=%2 | |
| SET VER=FBXExportFileVersion -v FBX201800; | |
| SET TRI=FBXExportTriangulate -v true; | |
| SET PROPS=%VER%%TRI% | |
| %MAYABATCH% -file %mayafile% -command "%PROPS%FBXExport -f ""%outfile%"";" |
NewerOlder