Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Accessing objects info in XSI

Accessing objects info in XSI

2004-06-11       - By Halfdan Ingvarsson

 Back
Reply:     1     2     3  

mi_api_tag_lookup will give you almost what you need. It will return the name
of the object as pushed to mental ray.

There are two caveats, though:
First, you will have to strip off some suffixes from it to get the name as it
is in XSI.

Secondly, it will not work on render slaves as the name table is not
transferred to them (will return a NULL).

- ½

-- --Original Message-- --
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf
Of Homam Bahnassi
Sent: Friday, 11 June, 2004 05:14
To: shader@(protected); XSI@(protected)
Subject: [MRay] Accessing objects info in XSI


I'm writing a shader for XSI and I need my shader to get some info from the
object being rendered. In my case I need to get the object's name.
I messed with mi_query but with no luck. If it's possible how could this
done?

Thanks,
Homam Bahnassi
3D Supervisor
In|Framez


---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6487.1">
<TITLE>RE: [MRay] Accessing objects info in XSI</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>mi_api_tag_lookup will give you almost what you need. It will
return the name of the object as pushed to mental ray. </FONT>
</P>

<P><FONT SIZE=2>There are two caveats, though:</FONT>

<BR><FONT SIZE=2>First, you will have to strip off some suffixes from it to get
the name as it is in XSI.</FONT>
</P>

<P><FONT SIZE=2>Secondly, it will not work on render slaves as the name table
is not transferred to them (will return a NULL).</FONT>
</P>

<P><FONT SIZE=2>- ½</FONT>
</P>

<P><FONT SIZE=2>-- --Original Message-- --</FONT>

<BR><FONT SIZE=2>From: owner-xsi@(protected) [<A HREF="mailto:owner-xsi
@(protected)">mailto:owner-xsi@(protected)</A>]On Behalf</FONT>

<BR><FONT SIZE=2>Of Homam Bahnassi</FONT>

<BR><FONT SIZE=2>Sent: Friday, 11 June, 2004 05:14</FONT>

<BR><FONT SIZE=2>To: shader@(protected); XSI@(protected)</FONT>

<BR><FONT SIZE=2>Subject: [MRay] Accessing objects info in XSI</FONT>
</P>
<BR>

<P><FONT SIZE=2>I'm writing a shader for XSI and I need my shader to get some
info from the</FONT>

<BR><FONT SIZE=2>object being rendered. In my case I need to get the object's
name.</FONT>

<BR><FONT SIZE=2>I messed with mi_query but with no luck. If it's possible how
could this</FONT>

<BR><FONT SIZE=2>done?</FONT>
</P>

<P><FONT SIZE=2>Thanks,</FONT>

<BR><FONT SIZE=2>Homam Bahnassi</FONT>

<BR><FONT SIZE=2>3D Supervisor</FONT>

<BR><FONT SIZE=2>In|Framez</FONT>
</P>
<BR>

<P><FONT SIZE=2>---</FONT>

<BR><FONT SIZE=2>Unsubscribe? Mail Majordomo@(protected) with the following
text in body:</FONT>

<BR><FONT SIZE=2>unsubscribe xsi</FONT>
</P>

</BODY>
</HTML>