This file contains 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
###------------------------------------------------------------ | |
# | |
# Tool Name: Cache Dependency | |
# | |
# Copyright: Takanori Kishikawa | |
# Created: 2015.09.06 | |
# Update: 2015.09.16 | |
# Lisence: BSD 3-Clause | |
# http://opensource.org/licenses/BSD-3-Clause | |
# |
This file contains 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
# -*- coding: utf-8 -*- | |
#---------------------------------------------------------------------------- | |
## Description | |
""" | |
Template for creating window on Maya with PySide. | |
""" | |
#---------------------------------------------------------------------------- | |
__author__ = 'name [[email protected]]' |
This file contains 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 PySide import QtCore | |
from PySide import QtGui | |
class Example(QtGui.QWidget): | |
def __init__(self, parent=None): | |
super(Example, self).__init__(parent) | |
self.initUI() | |
def initUI(self): |
This file contains 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
node = hou.pwd() | |
geo = node.geometry() | |
import random | |
inputs = node.inputs() | |
resultgeo = hou.Geometry(geo) | |
gcutter = hou.Geometry() | |
sops = hou.sopNodeTypeCategory() | |
boolean = sops.nodeVerb('boolean::2.0') |
This file contains 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 hou | |
import re | |
node = hou.pwd() | |
geo = node.geometry() | |
path_attrib = geo.addAttrib(hou.attribType.Prim, 'path', '') | |
instance = hou.node('..').name() | |
base = 'base' |
This file contains 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
Python error: Traceback (most recent call last): | |
File "", line 47, in | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1666, in restore | |
{self.saver_def.filename_tensor_name: save_path}) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 889, in run | |
run_metadata_ptr) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1120, in _run | |
feed_dict_tensor, options, run_metadata) | |
File "/home/takanori/.virtualenv/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1317, in _do_run | |
options, run_metadata) |
This file contains 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 PySide import QtCore, QtGui | |
import sys | |
class MainWindow(QtGui.QMainWindow): | |
def __init__(self): | |
super(MainWindow, self).__init__() | |
self.initUI() |
This file contains 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
# -*- coding: utf-8 -*- | |
import os | |
import datetime | |
import shutil | |
import traceback | |
from pathlib import Path | |
SCRIPTPATH = Path(os.path.dirname(os.path.abspath(__file__))) | |
now = datetime.datetime.now() |
This file contains 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 logging | |
__tooltitle__ = "" | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.INFO) | |
def set_logger(): | |
fmt = '[%(asctime)s][%(levelname)s] | %(message)s' | |
formatter = logging.Formatter(fmt) |