Jump to content

How To Define Frame Rnage Of File Channels?


Recommended Posts

Say I've made a chan file that looks something like so:

20 3 4 5

21 3 4 5.1

22 3 4 5.2

etc...

If I load up this chan file using a file CHOP & then export the chop to some object, the first row of data goes to frame one. How can I make it go to frame 20?

Link to comment
Share on other sites

Hi BK,

Hmm. I know nothing about the .chan file format. Is your file CHOP creating a channel for your frame values? (20,21,22)? That's what it's doing for me, it creates a channel called "chan0" and puts 20,21,22 in it, and all the channels start at frame 1. I suppose you could append a shift CHOP:

Reference: Start Position

Unit Values: Absolute

Start: chopf("./chan0",1)

(Common Tab)Units: Frames

That's the first thing I came up with, <shrug>

-JS-

Link to comment
Share on other sites

Hi BK,

Hmm. I know nothing about the .chan file format. Is your file CHOP creating a channel for your frame values? (20,21,22)? That's what it's doing for me, it creates a channel called "chan0" and puts 20,21,22 in it, and all the channels start at frame 1. I suppose you could append a shift CHOP:

Reference: Start Position

Unit Values: Absolute

Start: chopf("./chan0",1)

(Common Tab)Units: Frames

Yes, it's doing what you say - a channel for the frame num.

I suppose I could use a shift... wish there was a way to define the shift in frames as opposed to seconds. hmmm..

Link to comment
Share on other sites

Yes, it's doing what you say - a channel for the frame num.

I suppose I could use a shift... wish there was a way to define the shift in frames as opposed to seconds. hmmm..

You can. Every CHOP that uses time-based units has the 'Units' parameter on the common page enabled. Change it to frames.

If you wanted to use a slightly more involved format, you could write the data out in the Houdini .clip format:

{
	rate = &lt;framerate&gt;
	start = &lt;startframe&gt;
	tracklength = &lt;# samples per channel (N) &gt;
	tracks = &lt;# channels&gt;
	{
		name = &lt;chan #1 name&gt;
		data = &lt;data1&gt; &lt;data2&gt; .... &lt;dataN&gt;
	}
	{
		name = &lt;chan #2 name&gt;
		data = &lt;data1&gt; &lt;data2&gt; .... &lt;dataN&gt;
	}
}

This way, you could name your channels properly, so they export to the right spot, and you can incorporate your shift by setting start to 20. Of course, the extra formatting may not be worth it unless you're loading LOTS of channel files.

So, your above example would look like (assuming the first column is actually frame #'s and not data):

{
   rate = 24
   start = 20
   tracklength = 3
   tracks = 3
   {
	   name = tx
	   data = 3 4 5
   }
   {
	   name = ty
	   data = 3 4 5.1
   }
   {
	  name = tz
	  data = 3 4 5.2
   }
}

Link to comment
Share on other sites

You can. Every CHOP that uses time-based units has the 'Units' parameter on the common page enabled. Change it to frames.

If you wanted to use a slightly more involved format, you could write the data out in the Houdini .clip format:

The clip format looks perfect & is an easy change to the script that spits out this data.

Thanks on both accounts - units and clips. ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...