PDA

View Full Version : Expression problems


Soeren Nielsen
12-10-2002, 09:38 PM
Having some problems with an expression..

I have two objects .. "hood_CNTRL_01_CNTR" and "hood_CNTRL_01_L" and a null called "hood_CNTRL_02_L"
I want hood_CNTRL_02_L to be centered between the two other objects. I can make it work with .Position but I need the world position.. this is the expression I have so far
center([hood_CNTRL_01_CNTR.wpos(Time).Y],[hood_CNTRL_01_L.wpos(Time).Y])

But I get an error telling me "that channel does not exist. Im anyone who can help out here.

Soeren Nielsen
12-10-2002, 10:32 PM
Nevermind, I figured it out.. the correct expression should be
center(hood_CNTRL_01_CNTR.wpos(Time).y,hood_CNTRL_01_L.wpos(Time).y)
Hope this is usefull to someone else

SplineGod
12-11-2002, 03:30 AM
Yup, its case sensitive. You could also use the center function which does the same thing. Also, if nothing else, expression builder is useful for looking such things up. :)

Soeren Nielsen
12-11-2002, 02:29 PM
its not the case sensitivity thats the problem here (meaning I did try changing most of whats in the expression) .. its the brackets.. I used the center hip expression from the expression builder, but that didnt position it with world position.

CGTalk Moderation
01-13-2006, 11:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.