Re: [c++] Pass Environment / Bump slot / Subdivision

Date : Mon, 22 Jan 2007 19:57:15 +0100
To : XSI(at)Softimage.COM
From : "guillaume laforge" <guillaume.laforge.3d(at)gmail.com>
Subject : Re: [c++] Pass Environment / Bump slot / Subdivision
>1. How can I access the active pass environment to see if there is an image
>used as an environment shader (like a HDRI file)?

Here is a sample from one of my Jscript file :

            var oEnvironment = oPass.NestedObjects.Item("Environment Shader Stack");
            if(    oEnvironment.Source)
            {
                oShader = oEnvironment.Source;
                oEnvironments.add(oShader)
                var EnvElem = xmlDoc.createElement(oShader.Name);

            }

Not in C++ but as it looks like NestedObjects is used in C++, maybe it could help.

Cheers


--
Guillaume Laforge
freelance TD | cg Artist
my blog ! http://vol2blog.blogspot.com/

On 1/22/07, Michael Gangolf < miga_miga(at)gmx.de> wrote:
Hi
I have three c++ questions:

1. How can I access the active pass environment to see if there is an image
used as an environment shader (like a HDRI file)?

2. I want to find out if there is something plugged into the "bump" slot of my
material and if yes which image. How to do that in c++? Or is there a better
way to find out if the material got a bump map?

3. Is there a way to check the subdivision level of an object
(geomapprox.gapproxmosl and geomapprox.gapproxmordrsl)? At the moment I'm
using a JScript inside my c++ plugin, but I want to get rid of that :)

Thanks for the help,
Michael
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi




Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.