Skip to content

Instantly share code, notes, and snippets.

View whaison's full-sized avatar

whaison whaison

View GitHub Profile
@whaison
whaison / envList.py
Created February 2, 2017 07:40
envList.py
import sys
print(sys.path)
envList=sys.path
envListLength=len(envList)
print("envListLength = "+str(envListLength))
for i in range(0, envListLength):
print("envList["+str(i)+"]" + str(envList[i]) )
@whaison
whaison / 01_triangle.py
Created February 2, 2017 06:00
01_triangle.py
from glfwpy.glfw import (AUTO_POLL_EVENTS,
OPENED, OPENGL_CORE_PROFILE,
OPENGL_FORWARD_COMPAT, OPENGL_PROFILE,
OPENGL_VERSION_MAJOR,
OPENGL_VERSION_MINOR, WINDOW,
Enable, GetWindowParam, Init,
OpenWindow, OpenWindowHint,
SetKeyCallback, SetWindowTitle,
SwapBuffers, Terminate)
import numpy as np
from glfwpy.glfw import (AUTO_POLL_EVENTS, OPENED, OPENGL_CORE_PROFILE,
OPENGL_FORWARD_COMPAT, OPENGL_PROFILE, OPENGL_VERSION_MAJOR,
OPENGL_VERSION_MINOR, WINDOW,
Enable, GetWindowParam, Init, OpenWindow, OpenWindowHint,
SetKeyCallback, SetWindowTitle, SwapBuffers, Terminate)
import numpy as np
from OpenGL.arrays import ArrayDatatype
from OpenGL.GL import (GL_ARRAY_BUFFER, GL_COLOR_BUFFER_BIT,
GL_COMPILE_STATUS, GL_FALSE, GL_FLOAT, GL_FRAGMENT_SHADER,
GL_LINK_STATUS, GL_RENDERER, GL_SHADING_LANGUAGE_VERSION,
@whaison
whaison / Python_reflection_inspect_.py
Last active February 1, 2017 14:03
Python_reflection_inspect_.py
import inspect
import X_Class
X_Class_Instance = X_Class () # Class export instance.
X_Class_Instance_Member_List=inspect.getmembers(X_Class_Instance)
X_Class_Instance_Member_List_long=len(X_Class_Instance_Member_List)
print(" X_Class_Instance_Member_List_long ="+ str(X_Class_Instance_Member_List_long)+" !!!!!!!!!!!!!!!!!!!!!!")
for classInt in range(0, X_Class_Instance_Member_List_long):
classmember=X_Class_Instance_Member_List[ classInt]
@whaison
whaison / DisplayAnimation_fbxsdk_00850_FbxImported_Log_Exported_FbxExported_DisplayChannel00700__root_found_keyTimeValue_.py
Created February 1, 2017 10:34
DisplayAnimation_fbxsdk_00850_FbxImported_Log_Exported_FbxExported_DisplayChannel00700_root_found_keyTimeValue.py ============ GetCurve ===================== | import empty_load_Soldier_Model00140FBX_Simple_Only_Model_root_Head.fbx | export DisplayAnimation_fbxsdk_00850_FbxImported_Log_Exported_FbxExported_DisplayChannel00700___Log.txt | export …
# -*- coding: utf-8 -*-
from fbx import *
#from samples.ImportScene.DisplayCommon import *
def DisplayString(pHeader, pValue="" , pSuffix=""):
lString = "005 DisplayString() "
lString += " pHeader = "
lString += pHeader
lString += " pValue = "
lString += str(pValue)
lString += " pSuffix = "
@whaison
whaison / DisplayAnimation_fbxsdk_00850_FbxImported_Log_Exported_FbxExported_DisplayChannel00700_.py
Created February 1, 2017 04:51
DisplayAnimation_fbxsdk_00850_FbxImported_Log_Exported_FbxExported_DisplayChannel00700_.py ============ GetCurve ===================== | import empty_load_Soldier_Model00140FBX_Simple_Only_Model_root_Head.fbx | export DisplayAnimation_fbxsdk_00850_FbxImported_Log_Exported_FbxExported_DisplayChannel00700___Log.txt | export DisplayAnimation_fbxsdk…
# -*- coding: utf-8 -*-
from fbx import *
#from samples.ImportScene.DisplayCommon import *
def DisplayString(pHeader, pValue="" , pSuffix=""):
lString = "005 DisplayString() "
lString += " pHeader = "
lString += pHeader
lString += " pValue = "
lString += str(pValue)
lString += " pSuffix = "
@whaison
whaison / DisplayAnimation_fbxsdk_00750_FbxImported_Log_Exported_FbxExported_DisplayChannel00600_.py
Created February 1, 2017 03:46
DisplayAnimation_fbxsdk_00750_FbxImported_Log_Exported_FbxExported_DisplayChannel00600_.py ============ 336 DisplayAnimationLayer====================== | import empty_load_Soldier_Model00140FBX_Simple_Only_Model_root_Head.fbx | export DisplayAnimation_fbxsdk_00750_FbxImported_Log_Exported_FbxExported_DisplayChannel00600__Log.txt | export Display…
# -*- coding: utf-8 -*-
from fbx import *
#from samples.ImportScene.DisplayCommon import *
def DisplayString(pHeader, pValue="" , pSuffix=""):
lString = pHeader
lString += str(pValue)
lString += pSuffix
print(lString)
def DisplayBool(pHeader, pValue, pSuffix=""):
@whaison
whaison / DisplayAnimation_fbxsdk_00620_FbxImported_Log_Exported_FbxExported_DisplayChannel00100_.py
Last active February 1, 2017 03:43
DisplayAnimation_fbxsdk_00620_FbxImported_Log_Exported_FbxExported_DisplayChannel00100_.py ============ 336 DisplayAnimationLayer====================== | import empty_load_Soldier_Model00140FBX_Simple_Only_Model_root_Head.fbx | export DisplayAnimation_fbxsdk_00620_FbxImported_Log_Exported_FbxExported_DisplayChannel00100__Log.txt | export Display…
# -*- coding: utf-8 -*-
from fbx import *
#from samples.ImportScene.DisplayCommon import *
def DisplayString(pHeader, pValue="" , pSuffix=""):
lString = pHeader
lString += str(pValue)
lString += pSuffix
print(lString)
def DisplayBool(pHeader, pValue, pSuffix=""):
@whaison
whaison / DisplayAnimation_fbxsdk_00510_FbxImported_Log_Exported_FbxExported_00100.py
Created January 31, 2017 11:54
DisplayAnimation_fbxsdk_00510_FbxImported_Log_Exported_FbxExported_.py ============ 336 DisplayAnimationLayer====================== | empty_load_Soldier_Model00140FBX_Simple_Only_Model_root_Head.fbx | export DisplayAnimation_fbxsdk_00510_FbxImported_Log_Exported_FbxExported__Log.txt | export DisplayAnimation_fbxsdk_00510_FbxImported_Log_Exported…
# -*- coding: utf-8 -*-
from fbx import *
#from samples.ImportScene.DisplayCommon import *
def DisplayString(pHeader, pValue="" , pSuffix=""):
lString = pHeader
lString += str(pValue)
lString += pSuffix
print(lString)
def DisplayBool(pHeader, pValue, pSuffix=""):
@whaison
whaison / DisplayAnimation_fbxsdk_00510_FbxImported_Log_Exported_FbxExported_.py
Created January 31, 2017 10:12
DisplayAnimation_fbxsdk_00510_FbxImported_Log_Exported_FbxExported_.py | Load Solder_Model_ASCII_2016_2017_motion00200.fbx | export DisplayAnimation_fbxsdk_00510_FbxImported_Log_Exported_FbxExported__Log.txt | export DisplayAnimation_fbxsdk_00510_FbxImported_Log_Exported_FbxExported__Fbx.fbx
# -*- coding: utf-8 -*-
from fbx import *
#from samples.ImportScene.DisplayCommon import *
def DisplayString(pHeader, pValue="" , pSuffix=""):
lString = pHeader
lString += str(pValue)
lString += pSuffix
print(lString)
def DisplayBool(pHeader, pValue, pSuffix=""):