Editing channel reference expressions

   4756   4   1
User Avatar
Member
86 posts
Joined: Sept. 2008
Offline
Hello all,
I'm controlling some bones in a BVH imported character rig.
I'm playing around with chops and the warp curves , re timing the movements of my character.
I'm creating different warp chops with appended names data(1) data(2) etc..
then I'm duplicating my rigs and editing the channel reference expressions
that link the bones to the chops.
I'd like to edit them in a way that I can insert an opdigits function into them, so they can reference the number in the name of a node and append a given number
example :
/chops/data+opdigits(“.”)/hip_rx

kind of thing.
the opdigits doesn't work , can anyone think of a way to do this, or will I have to change all the references every time I make a new rig?
cheers
John
User Avatar
Member
8164 posts
Joined: July 2005
Offline
Doesn't this work?

/chops/data`opdigits(“.”)`/hip_rx
User Avatar
Member
86 posts
Joined: Sept. 2008
Offline
Hi edward
I just gave the “`” a go but keep getting this message:

**unable to evaluate expression , syntax error extra tokens detected in expression**
I've also tried referencing another spare parameter I've set up but got the same result
if I try something like`$F` it doesn't get the error but ignores the $F altogether

is there a different kind of syntax for this kind of expression?

Thanks
John
User Avatar
Member
8164 posts
Joined: July 2005
Offline
I had assumed that you wered putting this in a string parameter value. If you're putting this as a hscript channel reference expression instead, then you would need something like:

chop(“/chops/data” + opdigits(“.”) + “/hip_rx”)
User Avatar
Member
86 posts
Joined: Sept. 2008
Offline
Thanks Edward that works brilliantly
the dot in the quotation marks (“.”) refers to the amount of levels up the hierarchy to look for the name.
then (“..”) will take me up to the subnet that contains my rig.
For future reference the + sign's are part of the grammar peculiar to hscript?
Thanks again Edward that's saved me hours.
John
  • Quick Links