Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / News and Announcements / [Tips] Enable iRay in Autodesk Maya 2012
  RSS 2.0 ATOM  

[Tips] Enable iRay in Autodesk Maya 2012
Rate this thread
 
54796
 
Permlink of this thread  
avatar
  • Danyl
  • Posted: 20 April 2011 01:42 PM
  • Total Posts: 139
  • Joined: 09 October 2008 12:05 AM

This little tutorial will show you how to activate iRay in Autodesk Maya 2012.
308467.png
Link : http://www.siteduzero.com/forum-...y-dans-autodesk-maya.html



Learn Maya :
http://www.siteduzero.com/tutori...d-avec-autodesk-maya.html

Replies: 1
/userdata/avatar/5e2c402t2.jpg

Can you provide an English link?

Author: n8skow

Replied: 22 April 2011 09:36 AM  
avatar
  • Danyl
  • Posted: 23 April 2011 03:42 AM

1- Download the .dll files and put them in the maya/bin folder : http://linko.projects.free.fr/iRay%20for%20Maya.rar

2- do a render with mental ray (you can cancel it)

3- use this MEL script (you can save the script in the shelf) :

select miDefaultOptions;
int $idx = `getAttr -size miDefaultOptions.stringOptions`;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].name “iray”;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].value “on”;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].type “boolean”;
$idx = `getAttr -size miDefaultOptions.stringOptions`;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].name “progressive max samples”;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].value “99999999999999999999999”;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].type “integer”;
$idx = `getAttr -size miDefaultOptions.stringOptions`;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].name “progressive max time”;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].value “9999999999999999999999”;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].type “integer”;
$idx = `getAttr -size miDefaultOptions.stringOptions`;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].name “progressive error threshold”;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].value “0.01”;
setAttr -type “string” miDefaultOptions.stringOptions[$idx].type “scalar”;



Learn Maya :
http://www.siteduzero.com/tutori...d-avec-autodesk-maya.html

Replies: 0
avatar
  • dsd3d
  • Posted: 18 July 2011 12:00 AM

Hi i did follow exactly the way mentioned, but its showing

// Error: setAttr -type “string” miDefaultOptions.stringOptions[$idx].name “iray”;
//
// Error: Syntax error //

Thanks in adv



Replies: 1
/userdata/avatar/3bq64k729.

I have that error too.
How did you fix it?

Author: acv84

Replied: 01 August 2011 09:45 PM  
avatar
  • dsd3d
  • Posted: 21 July 2011 10:30 PM

hey i got it.. its working…



Replies: 0
avatar

hey i got it.. its working…

What did you have to do to fix your original problem?



3ds Max 2013, Maya 2013
Windows 7 Ultimate 64 Bit
Core i7, 12GB RAM
Nvidia Quadro FX 3700 (Driver 267.17)

Replies: 0
avatar
  • acv84
  • Posted: 01 August 2011 09:49 PM

The third time the script works, but how can I render with iray.
Do I have to do something? Thanks



Replies: 0
avatar
  • Zaskar
  • Posted: 04 November 2011 10:47 PM

If you copy that lines into your script editor the quotation marks needs to be replaced…
just delete all quotation marks and type them in again, then execute the script.

AND make sure you opened the RenderGlobals at least one time before and you switched the renderer to mental ray AND you also opened the tab “quality”. Otherwise the node miDefaultOptions the script wants to add the attributes to doesn`t exist.



Replies: 0
avatar
  • VinnieR
  • Posted: 12 April 2012 09:37 PM

Has anyone managed to get iRay to work with Maya 2013. I have been trying without any success :(

I have tried using the the library files that are bundled with Max 2013 knowing that mental Ray 3.10 includes iRay 2.0 without any success. Does anyone know if this hack is still possible in 2013?

I was just starting to get my head around all of this cool Mental Ray stuff, It would be a shame if we can get iRay 2.0 to work in Maya 2013.

The Unified Sampling stuff still works fine, actually even better with the new BSDF shaders :)



Replies: 0