
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am not a scripter but I am trying to create a simple mel script to make a file texture node and launch the file browser in one go....I have this but it does not work:
//create file node
shadingNode -asTexture -isColorManaged file;
$file = `ls -sl`;
//turn off filtering
setAttr ($file[0] + ".filterType") 0;
//try to open file browser
select $file;
AEfileTextureBrowser ("AEassignTextureCB " + $file[0] + ".fileTextureName")image;
I have tried several variations of the last line but I always get the following error:
"Wrong number of arguments on call to AEfileTextureBrowser"
Why?
Is something like this possible?
I just want a way to click one "file" button and have a file dialog open right away like other 3d apps.
Thanks
Solved! Go to Solution.