Skip to content

Instantly share code, notes, and snippets.

@nobolu-ootsuka-unrealengine
nobolu-ootsuka-unrealengine / MayaDockingClass.py
Created April 12, 2022 04:17 — forked from mottosso/MayaDockingClass.py
Maya 2017 PySide2 Docking Qt QMainWindow
"""
This is what you need to do in order to get a qt window to dock next to maya channel box,
In all maya versions, including 2017 with PySide2
"""
__author__ = "[email protected]"
import sys
import os
import logging
import xml.etree.ElementTree as xml
@nobolu-ootsuka-unrealengine
nobolu-ootsuka-unrealengine / get_collide_from_ray.py
Created February 25, 2022 07:53 — forked from hexagit/get_collide_from_ray.py
Mayaで指定ベクトルの衝突判定を行う
# -*- coding: utf-8 -*-
#===========================================
# カメラから直線方向にある選択メッシュに対してRayを飛ばす
# (視野角は考慮してないんでカメラは方向だけです。)
#===========================================
import maya.api.OpenMaya as om
# vector用カメラの諸々を取得
camera_selList = om.MGlobal.getSelectionListByName("camera1")
@nobolu-ootsuka-unrealengine
nobolu-ootsuka-unrealengine / FragmentWithSurface.shader
Created March 25, 2019 20:57 — forked from shop-0761/FragmentWithSurface.shader
Fragment と surface を一緒に使うやつ
Shader "Custom/fragmentWithSurface" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
}
SubShader {
Tags { "RenderType"="Opaque" }