Skip to content

Instantly share code, notes, and snippets.

## -*- coding: utf-8 -*-
## last updated:<2013/12/06 11:57:06>
## Megumi Ando
#MayaModlue-----------------------------------##
import pymel.core as pm
import pymel.util as pmUtil
import maya.mel as mm
#----------------------------------------------#
import os.path
@fereria
fereria / shelf.py
Created August 23, 2014 16:21
createShelfBtn
## -*- coding: utf-8 -*-
import pymel.core as pm
import maya.mel as mm
import sys
from PySide import QtCore, QtGui
from PySide.QtUiTools import QUiLoader
import remitools.foundation.qt as qt
@fereria
fereria / getUIValue.py
Created March 29, 2014 10:13
UIからの値取得方法
import pymel.core as pm
def ButtonSakusei():
WindowName = pm.window(t = "gomi")
pm.columnLayout()
pm.text(label="gomigomi")
pm.separator( w = 250, h = 10)
pm.text(label="gomigomigomi")
nn = pm.floatField(v=10)
@fereria
fereria / createMenu.py
Last active December 9, 2020 15:52
Windowにメニューとツールバーを追加するサンプル
## -*- coding: utf-8 -*-
import sys
from PySide import QtCore, QtGui
from PySide.QtUiTools import QUiLoader
import remitools.lib.qt as remiQt
"""
iconの読み込み
QtDesignerでIconを読み込んでリソースファイルを作成するqrcファイル
// dear imgui: standalone example application for GLFW + OpenGL2, using legacy fixed pipeline
// If you are new to dear imgui, see examples/README.txt and documentation at the top of imgui.cpp.
// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.)
// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)**
// **Prefer using the code in the example_glfw_opengl2/ folder**
// See imgui_impl_glfw.cpp for details.
#define NOMINMAX
// dear imgui: standalone example application for GLFW + OpenGL2, using legacy fixed pipeline
// If you are new to dear imgui, see examples/README.txt and documentation at the top of imgui.cpp.
// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.)
// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)**
// **Prefer using the code in the example_glfw_opengl2/ folder**
// See imgui_impl_glfw.cpp for details.
#define NOMINMAX
cmake_minimum_required(VERSION 3.1)
project(imguiSample CXX)
enable_language(CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DVK_PROTOTYPES")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_PROTOTYPES")
## -*- coding: utf-8 -*-
#model/viewの基本
import sys
from PySide2 import QtCore, QtWidgets
class testView(QtWidgets.QDialog):
def __init__(self, parent=None):
def hoge():
print("fuga!")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.