[email protected] nobolu-ootsuka-unrealengine
This file contains 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
""" | |
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 |
This file contains 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 -*- | |
#=========================================== | |
# カメラから直線方向にある選択メッシュに対してRayを飛ばす | |
# (視野角は考慮してないんでカメラは方向だけです。) | |
#=========================================== | |
import maya.api.OpenMaya as om | |
# vector用カメラの諸々を取得 | |
camera_selList = om.MGlobal.getSelectionListByName("camera1") |
This file contains 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
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" } |