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?
 
Scripting : How to know if a CnxPoint is connected ?

Scripting : How to know if a CnxPoint is connected ?

2005-02-27       - By Guillaume Laforge

 Back
Reply:     1     2     3  

Hi,

- I found how to know if an illumination shader parameter is > 0 :

   ex :    if( oShaderEnum.item().parameters( "reflectivity" ).red.value > 0 )
               { blablabla }
               if( oShaderEnum.item().parameters( "reflectivity" ).green.value
> 0 )
               { blablabla }
               if( oShaderEnum.item().parameters( "reflectivity" ).blue.value
> 0 )
               { blablabla }
- I found how to know if the parameter is checked :

   ex :    if( oShaderEnum.item().parameters( "reflect_inuse" ).value == true )
               { blablabla }



- But how to know if a parameter is connected to an other shader ?

 Something like this :

ex :    if( oShaderEnum.item().parameters( "reflect_inuse" ).CnxPoint == true )
           { blablabla }


Cheers,

Guillaume Laforge
CG artist
www.vol2nuit.fr

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>- I found how to know if an illumination shader
parameter is &gt; 0 :</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>&nbsp;&nbsp;&nbsp;&nbsp;ex :</FONT><FONT
size=2>&nbsp;&nbsp;&nbsp; if( oShaderEnum.item().parameters( "reflectivity"
).red.value &gt; 0 )<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp
;
&nbsp;&nbsp;&nbsp; { blablabla
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;
if( oShaderEnum.item().parameters( "reflectivity" ).green.value &gt; 0
)<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp
;
{ blablabla
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;
if( oShaderEnum.item().parameters( "reflectivity" ).blue.value &gt; 0
)<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp
;
{ blablabla }</DIV>
<DIV>
<P><FONT face=Arial>- I found how to know if the parameter is checked
:</FONT></P>
<P><FONT size=2><FONT face=Arial>&nbsp;&nbsp;&nbsp; ex
:</FONT>&nbsp;&nbsp;&nbsp; if( oShaderEnum.item().parameters( "reflect_inuse"
).value ==&nbsp;true )<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; { blablabla }</P>
<P><FONT face=Arial></FONT>&nbsp;</P>
<P><FONT face=Arial>- But how to know if a parameter is connected to an other
shader ?</FONT></P>
<P>&nbsp;&nbsp;<FONT face=Arial>Something like this :</FONT>&nbsp;</P>
<P><FONT face=Arial>ex :</FONT>&nbsp;&nbsp;&nbsp; if(
oShaderEnum.item().parameters( "reflect_inuse" ).<FONT
size=2>CnxPoint</FONT>&nbsp;==&nbsp;true )<BR>&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; { blablabla }</P><FONT face=Arial>
<P><BR>Cheers,</P>
<P>Guillaume Laforge<BR>CG artist<BR><A
href="http://www.vol2nuit.fr">www.vol2nuit.fr</A></FONT></P></FONT></FONT></DIV
></BODY></HTML>