PDA

View Full Version : Curve Point Expression Manipulation



ZombieDUG
October 25th, 2007, 12:34 PM
Hey Guys,

Does anyone know what the command is to manipulate the curve points individually? I'm adding a retime function to the write node I'm building and I really want it to be curve based since it's more stable. So far though I can't find a way to manipulate the Retime1.warp value of {warpcurve C 0 1}. Is a separate TCL script the way to go? Let me know if you have any ideas.

Thanks,
Doug

nathan
October 25th, 2007, 01:11 PM
This thread talks quiet a bit about curves and expressions. Should be some good ref's in them.

Thread - link (http://www.vfxtalk.com/forum/calling-commands-anmation-expressions-t11087.html)

ZombieDUG
October 25th, 2007, 02:12 PM
Great thread. I found one bit that was very interesting but there didn't seem to be a solution for the problem...


...You want the curve to set its value based on your integer knob...

That's exactly what I'm trying to accomplish, but still haven't found a way to manipulate only
the second point (x1 y1) on the warpcurve through an expressioned interger knob. Does anyone know of a way to accomplish this?

I tried creating a text node within the gizmo with the expression:

[warpcurve C 0 [value Text5.message] 1]

Which gives me the correct equation for the warpcurve, but the curve in the retime doesn't seem to be able to be expressioned to recall. Any ideas?

Thanks in advance!

NEO
October 25th, 2007, 05:50 PM
Since I was the terrorist in that thread I might write a line or two here. I never solved it that way and the way I intended to solve it. I mean, it must be possible in some way. But it's over my head at the moment. Instead I, with the help of rueter and nrgy (thanks again guys!), went for the normalized curve approach. It kinda did the trick. I still have some unsolved issues as seen in the last posts in that thread. Think I more or less scared them away with all my questions. =) hehehe.. I have not had the time to look into it for a while now.

But please, if you figure this one out you MUST explain how you did here. =)


Great thread. I found one bit that was very interesting but there didn't seem to be a solution for the problem...



That's exactly what I'm trying to accomplish, but still haven't found a way to manipulate only
the second point (x1 y1) on the warpcurve through an expressioned interger knob. Does anyone know of a way to accomplish this?

I tried creating a text node within the gizmo with the expression:

[warpcurve C 0 [value Text5.message] 1]

Which gives me the correct equation for the warpcurve, but the curve in the retime doesn't seem to be able to be expressioned to recall. Any ideas?

Thanks in advance!

rueter
October 26th, 2007, 02:06 PM
Think I more or less scared them away
naaaa, just a bit busy these days.

anyway, as far as I know there is no way to assign an expression to single keyframes.
You could have a script button that re-creates a curve based on user knobs every time you hit it but that's not really interactive.
The way to go is to base the entire curve on expressions rather than keyframes. that way you can control it via user knobs.

ZombieDUG
November 7th, 2007, 03:59 PM
Just to give you guys an update, I ended up going with a stored array of curves being driven by a switch and a user.knob. So the amount of curves are limited, but it does the trick. It may be more low tech than what I was going for, but like you all know sometimes the simplest approaches are the best. Thanks Rueter for you comment. You actually gave me the idea of just creating a stored array!

Thanks again!