Skip to content

Instantly share code, notes, and snippets.

View miica37's full-sized avatar

miica37

  • Rabbit Heart
  • Penang, Malaysia
View GitHub Profile
;
; ------------------------------
; Nvil
; ------------------------------
#IfWinActive ahk_exe NVil 1.0.exe
end::Esc
AppsKey::ScrollLock
; Retopo
;
; ------------------------------
; Nvil
; ------------------------------
#IfWinActive ahk_exe NVil 1.0.exe
end::Esc
AppsKey::ScrollLock
; Retopo
@miica37
miica37 / capture-viewport.py
Last active May 8, 2022 01:49
Maya Python Script to Capture Viewport
import os
import maya.cmds as cmds
from time import gmtime, strftime
def scene_resolution():
return [cmds.getAttr("defaultResolution.width")*3,cmds.getAttr("defaultResolution.height")*3]
def playback_selection_range():
aPlayBackSliderPython = mel.eval('$tmpVar=$gPlayBackSlider')
time_selection = cmds.timeControl(aPlayBackSliderPython, q=True, rng=True)[1:-1]