SUBSCRIBE The SideFX mailing list is a great place to make contact with Houdini users. To subscribe, send us an email with no subject and the word subscribe in the body.
channel length expression?
Monday, 5 August 2002 Mon, 5 Aug '02
Jason Simmons wrote:
Hi, Maybe I'm overlooking something really obvious, but is there an easy way to get the *total length* of a channel for use in an expression? I have a channel keyframed at frame 1 and 11, and I'm looking for a way to determine the total length of the channel (10 frames), so I can use expressions to offset the timing of other channels. Any help would be greatly appreciated! Many thanks in advance, Jason Simmons Technical Director Schwartz/Giunta Production Co.Hi Jason you could use chops. reference your channel into chops. then use the chopl expression. from exhelp......... float chopl (string CHOP) Evaluates the channel within a CHOP with at the specified sample index. eg. chopl("/ch/ch1/wave1/") just make sure your sample rate is the same as your frame rate I guess. cheers Jerry