  | | | Scripting : How to know if a CnxPoint is connected ? | Scripting : How to know if a CnxPoint is connected ? 2005-02-28 - By Guillaume Laforge
Back Thanks Bernard,
I just discovered you explain it here : http://www.xsibase.com/forum/index.php?board=26;action=display;threadid=16336 ;start=15 and Kim example is very interesting too ! Lot of homework tonight :-)
Cheers,
Guillaume Laforge CG artist www.vol2nuit.fr
-- -- Original Message -- -- From: "Bernard Lebel" <softimage@(protected)> To: <XSI@(protected)> Sent: Monday, February 28, 2005 12:28 AM Subject: Re: Scripting : How to know if a CnxPoint is connected ?
> Check the source property of parameter: > > if( !oParameter.source ) > { > logmessage( "Nothing connected" ); > } > else > { > logmessage( "Parameter source: " + oParameter.source ); > } > > > Cheers > Bernard > > > > Guillaume Laforge wrote: >> 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 <http://www.vol2nuit.fr> >> > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |