Methods ¶
__init__()
Creates an empty clip.
chopNode()
→ hou.ChopNode
Returns the hou.ChopNode owner of this clip.
This returns None
if the clip is not owned by a CHOP.
chopNodeOutputIndex()
→ int
Returns the index of the CHOP node output that this clip corresponds to. This returns -1 if the clip is not owned by a CHOP.
frameToSamples(frame)
→ double
Converts a value expressed as frames to a value expressed in samples.
sampleRange()
→ (start, end)
Return a 2-tuple containing the start and end values of the sample range.
The number of samples for each track in this node is start-end+1
. Note
that samples start from 0, not 1.
numSamples()
→ int
Return the number of samples in this clip.
sampleRate()
→ double
Returns the sample rate used by this clip in number of samples per second.
samplesToFrame(samples)
→ double
Converts a value expressed as samples to a value expressed in frames.
samplesToTime(samples)
→ double
Converts a value expressed as samples to a value expressed in seconds.
saveToFile(file_name)
Saves the clip to a file. The filename extension determines the file format to use.
loadFromFile(file_name)
Loads the clip from a file, such as a .bclip
.
timeToSamples(time)
→ double
Converts a value expressed in seconds to a value expressed in samples.
tracks()
→ tuple
of hou.Track
Returns a tuple of all the tracks in this clip.
track(track_name)
→ hou.Track or None
Return the track of the given name, or None
if it doesn’t exist.
See also |