  | | | 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 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> </DIV> <DIV><FONT face=Arial size=2>- I found how to know if an illumination shader parameter is > 0 :</FONT></DIV> <DIV><FONT face=Arial size=2><BR> ex :</FONT><FONT size=2> if( oShaderEnum.item().parameters( "reflectivity" ).red.value > 0 )<BR>   ; { blablabla }<BR> if( oShaderEnum.item().parameters( "reflectivity" ).green.value > 0 )<BR>   ; { blablabla }<BR> if( oShaderEnum.item().parameters( "reflectivity" ).blue.value > 0 )<BR>   ; { 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> ex :</FONT> if( oShaderEnum.item().parameters( "reflect_inuse" ).value == true )<BR> { blablabla }</P> <P><FONT face=Arial></FONT> </P> <P><FONT face=Arial>- But how to know if a parameter is connected to an other shader ?</FONT></P> <P> <FONT face=Arial>Something like this :</FONT> </P> <P><FONT face=Arial>ex :</FONT> if( oShaderEnum.item().parameters( "reflect_inuse" ).<FONT size=2>CnxPoint</FONT> == true )<BR> { 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>
|
|
 |