<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6004398207754300178</id><updated>2024-10-06T21:59:52.539-07:00</updated><title type='text'>Hemant Singh Sikarwar</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hemantssingh.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6004398207754300178/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://hemantssingh.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Hemant Singh Sikarwar</name><uri>http://www.blogger.com/profile/01995863804650237272</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6004398207754300178.post-2696675010455348042</id><published>2011-12-27T23:49:00.000-08:00</published><updated>2012-02-22T04:22:02.046-08:00</updated><title type='text'>Particle self collision( Maya Particle )</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Hi, here is the small tutorial for
implementing a self collision for maya particles.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
This tutorial shows you a step by step
process of implementing particle self collision using radial field.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
At the end of this tutorial I also
added a small MEL script to automate the whole process.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Self collision step-by-step:&lt;/div&gt;
&lt;ol&gt;&lt;ol&gt;&lt;ol&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
go to particles&amp;gt;create
   Emitter.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
select particle shape node and
   apply gravity field, go to fields&amp;gt;gravity.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Create a poly Plane. Select
   particle shape node and plane and go to Particles&amp;gt;Make collide.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
* It is not necessary to make a
   particle collide with some surface it just to see the effect of
   self collision.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Again select particle shape node
   and apply radial field to it, go to fields&amp;gt;Radial.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Select radial field and then
   particle shape node and go to fields&amp;gt;use selected as source of
   field.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Now select the radial field and
   open channel Box and turn on ApplyPerVertex attribute.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Now adjust the maxDisatnce of
   radial field to get the desired effect.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
* the maxDistance used in a given
   example is 0.6 .&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
now play the animation to see the self
collision in effect.&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD6zSklzgiE0ntXnpUAir6ZsCU0oF4v8XjLmwZS-8OryyhgJ2dlmuTFsMNLr6SEKjfScOjyd7zTGBHNtsa65cxb9OBQ_7SeRfh_6kewI2mKt8r5CIYzoUScf6yOkwhFS9UGocidTt5uJE/s1600/selfColisionParticle_vs_normalParticle.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD6zSklzgiE0ntXnpUAir6ZsCU0oF4v8XjLmwZS-8OryyhgJ2dlmuTFsMNLr6SEKjfScOjyd7zTGBHNtsa65cxb9OBQ_7SeRfh_6kewI2mKt8r5CIYzoUScf6yOkwhFS9UGocidTt5uJE/s400/selfColisionParticle_vs_normalParticle.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
MEL Script:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
/*&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
Hemant singh &lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
particle self collision&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
*/&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
proc particleSelfCollision()&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    string $sel[] = `ls -sl`;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    string $getShapeNode[] = `listRelatives -s -noIntermediate $sel[0]`;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    // check: the selected object is a particle node&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(`nodeType $getShapeNode[0]` == &quot;particle&quot;)&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        // create gravity field&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        string $grvtNode[] = 
`gravity -pos 0 0 0 -m 9.8 -att 0 -dx 0 -dy -1 -dz&amp;nbsp; 0  -mxd -1  -vsh none
 -vex 0 -vof 0 0 0 -vsw 360 -tsr 0.5`;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connectDynamic -f $grvtNode[0]  $sel[0];&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        // create radial field&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string $radlNode[] = 
`radial -pos 0 0 0 -m 1 -att 1 -typ 0 -pv 1 -mxd 0.6  -vsh none -vex 0 
-vof 0 0 0 -vsw 360 -tsr 0.5`;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        connectDynamic -f $radlNode[0]  $sel[0];&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        addDynamic $radlNode[0]  $sel[0];    &lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    else&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        error ( &quot;Selected object is not a particle object.&quot; );&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    }&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Cheers....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hemantssingh.blogspot.com/feeds/2696675010455348042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6004398207754300178/2696675010455348042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6004398207754300178/posts/default/2696675010455348042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6004398207754300178/posts/default/2696675010455348042'/><link rel='alternate' type='text/html' href='http://hemantssingh.blogspot.com/2011/12/particle-self-collision-maya-particle.html' title='Particle self collision( Maya Particle )'/><author><name>Hemant Singh Sikarwar</name><uri>http://www.blogger.com/profile/01995863804650237272</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD6zSklzgiE0ntXnpUAir6ZsCU0oF4v8XjLmwZS-8OryyhgJ2dlmuTFsMNLr6SEKjfScOjyd7zTGBHNtsa65cxb9OBQ_7SeRfh_6kewI2mKt8r5CIYzoUScf6yOkwhFS9UGocidTt5uJE/s72-c/selfColisionParticle_vs_normalParticle.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6004398207754300178.post-1124859895902031195</id><published>2011-12-13T21:02:00.000-08:00</published><updated>2012-02-22T04:21:39.837-08:00</updated><title type='text'>Object ID pass</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Well, some days back someone asked me for small help to automate the process of generating object ID pass. So I thought lets share it with every one....&lt;br /&gt;
&lt;br /&gt;
so here is a small MEL script for generating object Id pass.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;To obtain/setup an object ID pass,&lt;/span&gt; &lt;span style=&quot;color: black;&quot;&gt;please follow these steps:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: black;&quot;&gt;Copy the given script/code to your maya script editor.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: black;&quot;&gt;execute the script.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: black;&quot;&gt;and then execute the following command by supplying the render camera name as an argument&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; * for example if you are using &quot;persp&quot; as an render camera then the command will be...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &lt;/span&gt;setUpObjectIdPass(&quot;persp&quot;)&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;MEL SCRIPT:&lt;/b&gt; &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
//object ID pass&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
proc setUpObjectIdPass( string $renderCam )&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    // get selection list&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    string $sel[] = `ls -sl`;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    string $camShapeNode[] = `listRelatives -s -noIntermediate $renderCam`;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    int $id = 1;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    // add miLable attribute&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    addAttr -ln &quot;miLabel&quot; -at long -k 1;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    for( $item in $sel )&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    {&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        // set object ids&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        setAttr ($item + &quot;.miLabel&quot;) $id;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        $id++;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    }&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    // create mentalrayOutputPass and connections&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string $mrOutputPassNode = `createNode mentalrayOutputPass`;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    setAttr ($mrOutputPassNode+&quot;.dataType&quot;&lt;wbr&gt;&lt;/wbr&gt;) 11; &lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    connectAttr -f ($mrOutputPassNode+&quot;.message&quot;) ($camShapeNode[0]+&quot;.&lt;wbr&gt;&lt;/wbr&gt;mentalRayControls.&lt;wbr&gt;&lt;/wbr&gt;miOutputShaderList[0]&quot;);&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&lt;br /&gt;
Hit render and you will get a separate render image of object Id pass as an result.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
Cheers.... &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hemantssingh.blogspot.com/feeds/1124859895902031195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6004398207754300178/1124859895902031195' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6004398207754300178/posts/default/1124859895902031195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6004398207754300178/posts/default/1124859895902031195'/><link rel='alternate' type='text/html' href='http://hemantssingh.blogspot.com/2011/12/object-id-pass.html' title='Object ID pass'/><author><name>Hemant Singh Sikarwar</name><uri>http://www.blogger.com/profile/01995863804650237272</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6004398207754300178.post-5620512057941401549</id><published>2011-12-07T21:10:00.000-08:00</published><updated>2012-02-22T04:22:35.842-08:00</updated><title type='text'>Hemant Singh – Interview with CG Today</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Hemant Singh – FX TD&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.cgtoday.com/interview-artists/hemant-singh-%E2%80%93-fx-td-at-cdl&quot;&gt;Interview with CG Today&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Arial,Helvetica,sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;Hemant Singh is a Special Effects Technical Director at Charuvi Design Labs in Delhi. Before attaining this position at CDL, he was a Technical Generalist there. Mr. Singh spent a short time as a Technical Artist and Developer Consultant. He filled the positions of Pipeline Engineer, Rigger and Developer at Ittina Animation Studios. Hemant received his education at Maya Academy of Advanced Cinematics (MAAC) and Rajiv Gandhi Technical University, Bhopal.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Arial,Helvetica,sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: Arial,Helvetica,sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.cgtoday.com/interview-artists/hemant-singh-%E2%80%93-fx-td-at-cdl&quot; target=&quot;_blank&quot;&gt;See full Interview....&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hemantssingh.blogspot.com/feeds/5620512057941401549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6004398207754300178/5620512057941401549' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6004398207754300178/posts/default/5620512057941401549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6004398207754300178/posts/default/5620512057941401549'/><link rel='alternate' type='text/html' href='http://hemantssingh.blogspot.com/2011/12/hemant-singh-fx-td-interview-with-cg.html' title='Hemant Singh – Interview with CG Today'/><author><name>Hemant Singh Sikarwar</name><uri>http://www.blogger.com/profile/01995863804650237272</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>India</georss:featurename><georss:point>20.593684 78.96288</georss:point><georss:box>5.536602 58.748036 35.650766 99.177724</georss:box></entry></feed>