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
| public class ActivityProxyObjectHelper | |
| { | |
| public ActivityProxyObjectHelper(Activity context) | |
| { | |
| _proxyClasses = new ArrayList(); | |
| _context = context; | |
| } | |
| protected void onCreate(Bundle savedInstanceState) |
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
| FILE_PATH = File.expand_path './file.fbx' | |
| CORRECT = %w"K a y d a r a \ F B X \ B i n a r y \ \ " | |
| def binary_fbx? file_path | |
| File.open( file_path, 'rb' ) do |file| | |
| CORRECT.each do |char| | |
| num = file.read( 1 ) | |
| false if num != char | |
| end |
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
| # In mymodule.py | |
| from zope.proxy import ProxyBase, setProxiedObject | |
| hoge = ProxyBase(None) | |
| def setup_hoge(): | |
| setProxiedObject(hoge, 'hoge') |
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
| - (void)repaint | |
| { | |
| EAGLContextSetCurrentAutoRestore autorestore(_mainDisplay->surface.context); | |
| SetupUnityDefaultFBO(&_mainDisplay->surface); | |
| // ... | |
| } |
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 OpenMaya | |
| from pymel.core import * | |
| def mdagpath_from_name(name, extend_to_shape=False): | |
| if not objExists(name): | |
| raise MayaNodeError, name | |
| slist = OpenMaya.MSelectionList() | |
| slist.add(name) | |
| dagpath = OpenMaya.MDagPath() | |
| slist.getDagPath(0, dagpath) |
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
| spPaint3d mod | |
| constraint Y(Y軸コンストレイント) SHIFT + mouse drag | |
| constraint X(X軸コンストレイント) CTRL + mouse drag | |
| spPaint3dContext.py | |
| ***** ORIGINAL オリジナル | |
| 306: | |
| 307: pressPosition = mc.draggerContext(spPaint3dContextID, query=True, anchorPoint=True); |
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
| ###------------------------------------------------------------ | |
| # | |
| # 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 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 pyfbsdk import * | |
| def getSelectedOrder(): | |
| # selectionOrder selection order | |
| # Get the current selection | |
| lModelList = FBModelList() | |
| pParent = None | |
| pSelected = True | |
| pSortSelectedOrder = True | |
| FBGetSelectedModels( lModelList, pParent, pSelected, pSortSelectedOrder ) |
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
| #!/usr/bin/env python | |
| import sys, os.path | |
| install_path = sys.argv[1] | |
| target_platform = sys.argv[2] | |
| if target_platform != "iPhone": sys.exit() | |
| info_plist_path = os.path.join(install_path, 'Info.plist') |
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
| using UnityEngine; | |
| public class ResettableScriptableObject : ScriptableObject | |
| { | |
| #if UNITY_EDITOR | |
| [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
| private static void CallBeforPlayScene() | |
| { | |
| // recently, unity editor will crash | |
| // recommend SaveProject before playing |
OlderNewer