Blender PythonからVRayのノードを追加する
ノードを追加
import bpy
node = bpy.data.node_groups["Material.001"]
node.nodes.new(type='VRayNodeMetaStandardMaterial')
Material
| Material Output |
VRayNodeOutputMaterial |
| Standard Material |
VRayNodeMetaStandardMaterial |
| Two Sided |
VRayNodeMtl2Sided |
| Angle Blend |
VRayNodeMtlAngleBlend |
| Diffuse |
VRayNodeMtlDiffuse |
| Double Sided |
VRayNodeMtlDoubleSided |
| GLSL |
VRayNodeMtlGLSL |
| Material ID |
VRayNodeMtlMaterialID |
| Object Bounding |
VRayNodeMtlObjBBox |
| Override |
VRayNodeMtlOverride |
| Render Stats |
VRayNodeMtlRenderStats |
| Rounded Corners |
VRayNodeMtlRoundEdges |
| Single |
VRayNodeMtlSingleBRDF |
| Streak Fade |
VRayNodeMtlStreakFade |
| Toon |
VRayNodeMtlToon |
| VRmat |
VRayNodeMtlVRmat |
| Wrapper |
VRayNodeMtlWrapper |
| Multi ID |
VRayNodeMtlMulti |
| OSL Material |
VRayNodeMtlOSL |
BRDF
| AlHair | VRayNodeBRDFAlHair |
| Material Output | VRayNodeOutputMaterial |
| AlSurface | VRayNodeBRDFAlSurface |
| Blinn | VRayNodeBRDFBlinn |
| Bump | VRayNodeBRDFBump |
| CSV | VRayNodeBRDFCSV |
| Car Paint | VRayNodeBRDFCarPaint |
| Cook Torrance | VRayNodeBRDFCookTorrance |
| Diffuse | VRayNodeBRDFDiffuse |
| Diffuse For SSS | VRayNodeBRDFDiffuse_forSSS |
| Flakes | VRayNodeBRDFFlakes |
| GGX | VRayNodeBRDFGGX |
| Glass | VRayNodeBRDFGlass |
| Glass Glossy | VRayNodeBRDFGlassGlossy |
| HOPS | VRayNodeBRDFHOPS |
| Hair | VRayNodeBRDFHair |
| Hair 2 | VRayNodeBRDFHair2 |
| Hair 3 | VRayNodeBRDFHair3 |
| Hair 4 | VRayNodeBRDFHair4 |
| Light | VRayNodeBRDFLight |
| Mirror | VRayNodeBRDFMirror |
| Multi Bump | VRayNodeBRDFMultiBump |
| Phong | VRayNodeBRDFPhong |
| Reflection | VRayNodeBRDFReflection |
| Refraction | VRayNodeBRDFRefraction |
| SSS | VRayNodeBRDFSSS |
| SSS 2 | VRayNodeBRDFSSS2 |
| SSS 2 Complex | VRayNodeBRDFSSS2Complex |
| Sampled | VRayNodeBRDFSampled |
| Skin | VRayNodeBRDFSkinComplex |
| Stochastic Flakes | VRayNodeBRDFStochasticFlakes |
| VRayMtl | VRayNodeBRDFVRayMtl |
| Ward | VRayNodeBRDFWard |
| Point Particle | VRayNodeBSDFPointParticle |
| Layered | VRayNodeBRDFLayered |
Textures
| Image File |
VRayNodeMetaImageTexture |
| Color |
VRayNodeTexAColor |
| Bercon Distortion |
VRayNodeTexBerconDistortion |
| Bercon Grad |
VRayNodeTexBerconGrad |
| Bercon Noise |
VRayNodeTexBerconNoise |
| Bercon Tile |
VRayNodeTexBerconTile |
| Bercon Wood |
VRayNodeTexBerconWood |
| Bifrost VV Mix |
VRayNodeTexBifrostVVMix |
| Bulge |
VRayNodeTexBulge |
| Cellular |
VRayNodeTexCellular |
| Checker |
VRayNodeTexChecker |
| Cloth |
VRayNodeTexCloth |
| Curvature |
VRayNodeTexCurvature |
| Dirt |
VRayNodeTexDirt |
| Distance |
VRayNodeTexDistance |
| Distance Between |
VRayNodeTexDistanceBetween |
| Edges |
VRayNodeTexEdges |
| Falloff |
VRayNodeTexFalloff |
| Float |
VRayNodeTexFloat |
| Fresnel |
VRayNodeTexFresnel |
| Gradient Ramp |
VRayNodeTexGradRamp |
| Gradient |
VRayNodeTexGradient |
| Granite |
VRayNodeTexGranite |
| Grid |
VRayNodeTexGrid |
| HSV To RGB |
VRayNodeTexHSVToRGB |
| Hair Sampler |
VRayNodeTexHairSampler |
| ICC |
VRayNodeTexICC |
| Int |
VRayNodeTexInt |
| Leather |
VRayNodeTexLeather |
| Luminance |
VRayNodeTexLuminance |
| Lut |
VRayNodeTexLut |
| Marble |
VRayNodeTexMarble |
| Mesh Map Channel |
VRayNodeTexMeshVertexColorChannel |
| Motion Occlusion |
VRayNodeTexMotionOcclusion |
| Multi Float |
VRayNodeTexMultiFloat |
| Noise |
VRayNodeTexNoise |
| Noise (3ds Max) |
VRayNodeTexNoiseMax |
| Noise (Maya) |
VRayNodeTexNoiseMaya |
| OCIO |
VRayNodeTexOCIO |
| OpenVDB |
VRayNodeTexOpenVDB |
| Ptex |
VRayNodeTexPtex |
| Ray Switch |
VRayNodeTexRaySwitch |
| Rock |
VRayNodeTexRock |
| Sampler |
VRayNodeTexSampler |
| Noise (Simplex) |
VRayNodeTexSimplexNoise |
| Sky |
VRayNodeTexSky |
| Smoke |
VRayNodeTexSmoke |
| Snow |
VRayNodeTexSnow |
| Soft Box |
VRayNodeTexSoftbox |
| Speckle |
VRayNodeTexSpeckle |
| Splat |
VRayNodeTexSplat |
| Stencil |
VRayNodeTexStencil |
| Stucco |
VRayNodeTexStucco |
| Surface Luminance |
VRayNodeTexSurfaceLuminance |
| Swirl |
VRayNodeTexSwirl |
| Temperature |
VRayNodeTexTemperature |
| Thickness |
VRayNodeTexThickness |
| Tiles |
VRayNodeTexTiles |
| TriPlanar |
VRayNodeTexTriPlanar |
| UVW |
VRayNodeTexUVW |
| User Color |
VRayNodeTexUserColor |
| User Scalar |
VRayNodeTexUserScalar |
| Voxel Data |
VRayNodeTexVoxelData |
| Water |
VRayNodeTexWater |
| Wood |
VRayNodeTexWood |
| Layered |
VRayNodeTexLayered |
| Multi ID |
VRayNodeTexMulti |
| OSL Texture |
VRayNodeTexOSL |
確認方法
ノードを手動で追加し、以下のスクリプトで表示させている。
import bpy
node = bpy.data.node_groups["Material.001"]
for n in node.nodes:
print(n)
この記事のトラックバックURL: