[Sidefx-houdini-list] Re: CHOPs to Keyframes? (case# 6953)
angel at sidefx.com
Mon Jul 17 15:25:31 EDT 2006
Sorry. Skipped that part. Peter is correct. Or if you really don't
want to write to disk, you could write a little script as follows:
for i = $FSTART to $FEND step 1
chkey -f $i -v `chopf("/obj/model/chopnet1/wave1/chan1",$i)`
To look up channel values at each frame and stuff them into your
parameter then refit it. Also since the for loop command takes an
increment (see "help for" in the textport), you could look up channel
values to higher precision.
Another approach could also be to write your chanel information to disk
as a .chn file directly from the CHOP, then parse the lines of that .chn
file into chkey commands as the information in both is concommitant
Peter Bowmar wrote:
> Hey Jeff,
> To script this, use "opsave" to save the CHOP data as a .chan
> file (raw sample per frame) then "chread" to load that into the
> channel(s) you want then "chrefit" to set the level of detail on the
> keyframes... the same as what Angel describes but via Hscript...
> Peter B
> On 14/07/06, Angel Alladina <angel at sidefx.com> wrote:
>> Hi Jeff,
>> I believe what you want is:
>> Make sure your CHOP is exporting properly to the right parameter (set
>> the channel name and export prefix properly). Then switch off the
>> export flag, right click->Edit Data Channels->click on the plus button
>> on the top stowbar. THen select the frame range you want to export the
>> keys to, adjust the tolerance to best fit the number of keys necessary
>> to follow your channel curve, and click "copy to export destination".
>> Jeff Willette wrote:
>> > In CHOPs you can Right-CLick:Edit Data Channels, and it converts the
>> > channel data into keyframes, in what appears a fairly intelligent way.
>> > How can this keyframe data be accessed? Say I want to copy it into
>> > another channel that an animator can modify.
>> > Can the creation of these keyframes be scripted?
>> > Thanks,
>> > Jeff Willette
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list