Introduction to Maya - Rendering in Arnold
This course will look at the fundamentals of rendering in Arnold. We'll go through the different light types available, cameras, shaders, Arnold's render settings and finally how to split an image into render passes (AOV's), before we then reassemble it i
# 1 15-02-2020 , 10:30 AM
Registered User
Join Date: Aug 2019
Posts: 2

Open File dialog and assign texture

Hi, I created a Blinn material and it has 2d texture node now what I want is that when the user runs this script it should ask which texture he wants to assign Any idea?

string $mySel[] = `ls -sl`;
string $myBlinn = `shadingNode -asShader blinn`;
string $myFile = `createRenderNodeCB -as2DTexture "" file ("")`;
setAttr ($myBlinn + ".specularRollOff")0.2;
connectAttr ($myFile+".outColor") ($myBlinn+".color");
select $myFile;
AEfileTextureBrowser ("AEassignTextureCB " + $myFile + ".fileTextureName") $myFile image;
select -r $mySel;
hyperShade -assign $myBlinn $mySel;

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off