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 mayaUsd.ufe | |
stage = mayaUsd.ufe.getStage("|Kitchen_set|Kitchen_setShape") |
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
current_dir=$(pwd) | |
while IFS= read -r line; do | |
for pkg in $(ls $line/*/package.py); do | |
pkg_dir=$(dirname $pkg) | |
cd $pkg_dir | |
echo $pkg | |
cd $current_dir | |
done | |
done < 1.txt |
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 rockylinux:8 | |
ARG PYTHON_VERSION=3.10.12 | |
RUN sed -e 's|^mirrorlist=|#mirrorlist=|g' \ | |
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.nju.edu.cn/rocky|g' \ | |
-i.bak \ | |
/etc/yum.repos.d/[Rr]ocky*.repo | |
RUN dnf makecache |
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 rockylinux:8 | |
RUN sed -e 's|^mirrorlist=|#mirrorlist=|g' \ | |
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.nju.edu.cn/rocky|g' \ | |
-i.bak \ | |
/etc/yum.repos.d/[Rr]ocky*.repo | |
RUN dnf makecache | |
RUN dnf install -y epel-release wget |
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
#======================================== | |
# author: Changlong.Zang | |
# mail: [email protected] | |
# time: Wed Jun 15 15:11:51 2022 | |
#======================================== | |
import os | |
import glob | |
from datetime import datetime | |
import maya.cmds as mc | |
import maya.mel as mel |
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
#======================================== | |
# author: Changlong.Zang | |
# mail: [email protected] | |
# time: Wed Feb 16 13:41:00 2022 | |
#======================================== | |
import re | |
import os | |
import shutil | |
import itertools | |
import maya.cmds as mc |
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
#======================================== | |
# author: Changlong.Zang | |
# mail: [email protected] | |
# time: Mon Aug 30 18:42:43 2021 | |
#======================================== | |
import traceback | |
import pymel.core as pm | |
import maya.OpenMaya as OpenMaya | |
#--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | |
def main(): |
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
''' | |
export camera standalone | |
1. put in `C:/Users/<user>/Documents/maya/scripts` | |
2. open maya and select the camera in outliner | |
3. menu 'custom->Export Selected Camera' | |
''' | |
from maya import cmds | |
from maya import mel | |
def make_kwargs(overrides, **kwargs): |
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 maya import cmds,mel | |
import maya.api.OpenMaya as om | |
import maya.api.OpenMayaAnim as oma | |
# info | |
# only use for Catmull-Clark subdivision !!!! | |
# make sure both mesh was bound to the same skeleton !!!! | |
# step 1. select source mesh | |
# step 2. select smooth 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
#======================================== | |
# author: Changlong.Zang | |
# mail: [email protected]. | |
# time: Wed Oct 20 21:20:37 2021 | |
#======================================== | |
import os | |
import glob | |
import datetime | |
import maya.cmds as mc | |
import pymel.core as pm |
NewerOlder