poetry new <project-name>
poetry add <library>
Option Explicit | |
Sub AddElements() | |
Dim shp As Shape | |
Dim i As Integer, n As Integer | |
n = ActivePresentation.Slides.Count | |
For i = 1 To n | |
Dim s As Slide | |
Set s = ActivePresentation.Slides(i) |
import os | |
import nuke | |
def get_padding(seqNumbers): | |
''' | |
Get correct number of padding for image sequence | |
''' | |
size = len(seqNumbers) | |
padding = '' |
FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
from PyQt5 import QtWidgets | |
from PyQt5 import QtCore | |
from PyQt5 import QtGui | |
from maya import OpenMayaUI | |
from sip import wrapinstance | |
class Test_UI(QtWidgets.QWidget): | |
def __init__(self, *args, **kwargs): |
from functools import wraps | |
def my_decorator(f): | |
@wraps(f) | |
def inner_dec(*args, **kws): | |
try: | |
## turn state on | |
f(*args, **kws) | |
print('test') | |
finally: |
import os, re, stat, sys, shutil | |
from PyQt5 import QtWidgets, QtCore | |
qtWidgets_modules = dir(QtWidgets) | |
qtCore_modules = dir(QtCore) | |
def fixFile(line_list): | |
line_generator = iter(line_list) | |
changed = False |
""" | |
Widget Hierarchy | |
""" | |
from PyQt5 import QtWidgets, QtGui, QtCore | |
from sip import wrapinstance | |
from maya import OpenMayaUI as omui | |
from maya.app.general.mayaMixin import MayaQWidgetBaseMixin | |
from pprint import pprint |
{ | |
"path": "C:/Autodesk/Maya2017-x64/bin/mayapy.exe", | |
"cmd": ["C:/Autodesk/Maya2017-x64/bin/mayapy.exe", "$file"], | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"selector": "source.python" | |
} |