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
| # -*- coding: utf-8 -*- | |
| # original script | |
| # https://github.com/domlysz/BlenderGIS/blob/master/operators/utils/delaunay_voronoi.py | |
| # - 2021.09.14 modified by Hyuk Ko (kohyuk91@gmail.com) | |
| # USAGE |
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
| // Sets the scriptJob ID for the exploit to an invalid value, so Maya never actually runs the malicious code. | |
| global int $autoUpdateAttrEd_aoto_int; | |
| $autoUpdateAttrEd_aoto_int = -1; |
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 unreal | |
| asset_tools = unreal.AssetToolsHelpers.get_asset_tools() | |
| soft_references = asset_tools.find_soft_references_to_object(unreal.SoftObjectPath(path_string='/Game/InfinityBladeGrassLands/NewLevelSequence1.NewLevelSequence1')) | |
| # [LevelSequenceActor'"/Game/InfinityBladeGrassLands/Maps/ElvenRuins.ElvenRuins:PersistentLevel.NewLevelSequence1"'] | |
| umap = soft_references[0].get_world() | |
| # <Object '/Game/InfinityBladeGrassLands/Maps/ElvenRuins.ElvenRuins' (0x000001BCACF82B00) Class 'World'> |
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
| ffmpeg.exe -i input.mov -filter_complex "pad=height=ih+80:y=40" output.mov |
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
| # Author : HYUK KO | kohyuk91@gmail.com | github.com/kohyuk91 | |
| import os | |
| import re | |
| import maya.cmds as mc | |
| DEFAULT_PADDING = 3 |
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
| # Author : HYUK KO | kohyuk91@gmail.com | github.com/kohyuk91 | |
| import maya.cmds as mc | |
| def getObjectType(sel): | |
| try: | |
| objectType = mc.objectType(sel) # Get object type. | |
| except: |
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 maya.cmds as mc | |
| def createCone(locName,tx,ty,tz): | |
| cone = mc.polyCone(name='cone_'+locName, r=1, h=2, sx=4, sy=1, sz=0, ax=[0,0,0], rcp=0, cuv=3, ch=True)[0] | |
| mc.move(1, y=True) | |
| mc.rotate(180, x=True) | |
| mc.rotate(45, y=True) | |
| mc.move(0, 0, 0, cone+".scalePivot", cone+".rotatePivot", absolute=True) | |
| mc.makeIdentity(apply=True, translate=True, rotate=True) | |
| mc.xform(cone, a=True, ws=True, translation=(tx,ty,tz)) |
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 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: |
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
| # | |
| # Name: | |
| # atomClipboard.py | |
| # | |
| # Author: | |
| # Hyuk Ko | kohyuk91@gmail.com | github.com/kohyuk91 | |
| # | |
| """ | |
| import atomClipboard |
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 template | |
| try: | |
| t.close() | |
| t.deleteLater() | |
| except: | |
| pass | |
| t = template.Template() | |
| t.show() | |
| """ |
NewerOlder