how to test if an attribute exist?
-
jerry7
- Posts: 45
- Joined: 22 May 2010, 01:43
how to test if an attribute exist?
hi, how to test if ice attribute exist or not initialized?
-
Mathaeus
- Posts: 1778
- Joined: 08 Jun 2009, 19:11
- Location: Zagreb, Croatia
Re: how to test if an attribute exist?
Hi,
just if attribute exist, I think you can't (successfully) test this, at least in ICE tree. Once you have get data node that has defined context, your attribute actually exists.
But, if you know what value you can expect from your attribute, you can do some logic with output, for example, if it's not zero, then....
At least that's my understanding.....
just if attribute exist, I think you can't (successfully) test this, at least in ICE tree. Once you have get data node that has defined context, your attribute actually exists.
But, if you know what value you can expect from your attribute, you can do some logic with output, for example, if it's not zero, then....
At least that's my understanding.....
-
xsisupport
- Posts: 713
- Joined: 09 Jun 2009, 09:02
- Location: Montreal Canada
Re: how to test if an attribute exist?
You could do something like what the Get Texture Map Color compound does with First Valid.
-
Mathaeus
- Posts: 1778
- Joined: 08 Jun 2009, 19:11
- Location: Zagreb, Croatia
Re: how to test if an attribute exist?
hi,
just another one from 'first valid' creativity... this will return true if curve is plugged into the port, and false if doesn't

just another one from 'first valid' creativity... this will return true if curve is plugged into the port, and false if doesn't
