chexist not working

   2446   2   1
User Avatar
Member
11 posts
Joined: Jan. 2006
Offline
Hi,
I am trying to use the chexist expression, but it seems to return zero in every case. For example, in this case it should clearly return 1:

echo `ch(“/obj/geo1/mybox/tx”)`
0.6
echo `chexist(“/obj/geo1/mybox/tx”)`
0

Has anyone else had any problems using it, or am I just using it wrong?
Thanks
Henry
User Avatar
Member
4256 posts
Joined: July 2005
Offline
Seems to work.

Try this


opcf /obj
opadd geo geo
echo `chexist(“geo/tx”)`
0
chadd geo tx
echo `chexist(“geo/tx”)`
1
if(coffees<2,round(float),float)
User Avatar
Member
7025 posts
Joined: July 2005
Offline
The channel only exists if a keyframe has been set or an expression entered. In either case, a channel is created. Channels don't exist by default!

Cheers

Peter B
  • Quick Links