Skip to content

Instantly share code, notes, and snippets.

View kohyuk91's full-sized avatar

kohyuk91

View GitHub Profile
# Name:
# easy_dewarp_reference_frames.py
#
# Author:
# Hyuk Ko ([email protected])
#
# Copyright (C) 2019 Hyuk Ko. All rights reserved.
#
#
# 3DE4.script.name: Easy Dewarp Reference Frames...
import maya.cmds as mc
""" 로케이터 리스트 """
loc_list = mc.ls(selection=True) # [u'locator1', u'locator2', u'locator3']
for loc in loc_list:
""" 사각뿔 콘생성 """
polycone = mc.polyCone(subdivisionsAxis=4)[0]
#
#
# 3DE4.script.name: Flip Tracking Direction
#
# 3DE4.script.version: v1.0
#
# 3DE4.script.comment: This tool will flip the tracking dirction of one selected point.
#
# 3DE4.script.gui: Manual Tracking Controls::View
global proc shelf_Matchmove () {
global string $gBuffStr;
global string $gBuffStr0;
global string $gBuffStr1;
shelfButton
-enableCommandRepeat 1
-enable 1
-width 35
#
#
# 3DE4.script.name: XZ Plane Flip
#
# 3DE4.script.version: v1.0
#
# 3DE4.script.gui: Orientation Controls::Edit::Align Multiple Points
#
# 3DE4.script.comment: Align multiple selected points to XZ Plane. The operation requieres at least 3 Points.
#
@kohyuk91
kohyuk91 / unbake.py
Last active December 10, 2019 01:13
"""
Usage
1. Select Camera
2. Select Object Point Group(s)
3. Run Script
"""
import maya.cmds as mc
selCamTrans = mc.ls(selection=True, long=True)[0]
# BSD 3-Clause License
#
# Copyright (c) 2019, Hyuk Ko.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
"""
import template
try:
t.close()
t.deleteLater()
except:
pass
t = template.Template()
t.show()
"""
#
# Name:
# atomClipboard.py
#
# Author:
# Hyuk Ko | [email protected] | github.com/kohyuk91
#
"""
import atomClipboard
from maya import cmds
def main():
window = "graphEditor1Window"
try:
if cmds.workspaceControl(window, q=True, floating=True):
cmds.warning("There is no docked '{0}'.".format(window))
return
except: