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.api.OpenMaya import MGlobal | |
from mhash import MHash | |
selection_list = MGlobal.getSelectionListByName('persp') | |
# MObject は直接 dict のキーにできないけど | |
mobject = selection_list.getDependNode(0) | |
# MHashのインスタンスなら dict のキーにできる | |
mhash1 = MHash(mobject) |
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 flask import Flask | |
from flask import request | |
from flask import jsonify | |
from celery import Celery | |
app = Flask(__name__) | |
app.config['CELERY_BROKER_URL'] = 'redis://localhost:6379/0' | |
app.config['CELERY_RESULT_BACKEND'] = 'redis://localhost:6379/0' | |
SLACK_BOT_TOKEN = 'token' |
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 sys | |
import shutil | |
from pathlib import Path | |
from datetime import datetime | |
from typing import Optional | |
LOCAL_PIC_DIR = Path('path to local') | |
NAS_PIC_DIR = Path('path to nas') | |
LOCAL_MOV_DIR = Path('path to local') |
OlderNewer