Info CHOP

From TouchDesigner 099 Wiki

Summary

The Info CHOP gives you extra information about a node. All nodes contain extra inside information, and different types of nodes (TOPs, CHOPs, etc) contain different subsets of information. This additional information can be accessed via an Info CHOP.

These extra attributes can also be accessed using the opinfo command and by using the opinfo() expression. This expression will give numeric and text information, and the CHOP gives only what can be expressed as numbers.

PythonIcon.png infoCHOP_Class

Parameters Info Page

Operator /op - The path of the node that the Info CHOP is getting information from. You can drag and drop any node onto this path, or type the path directly into the field.

Scope /iscope - The names of the attributes to keep. Name patterns may be used as detailed in Pattern Matching.

Values /values - Select channel with values inside or outside the range specified in Range.

  • All - All channels selected.
  • Inside Range - Channels with values inside Range selected.
  • Outside Range - Channels with values outside Range selected.

Range /range - Set the bounds for selecting channels by value.

Passive /passive - When Passive is Off the Info CHOP will cook the Operator it is pointing to before querying its values. When Passive is On it will not force a cook. A side effect: If the Info CHOP and the target are both cooking that frame, the Info may cook before the target, so it’s data will be a frame late.

Standard Options and Local Variables


Attributes

The attributes the Info CHOP monitors are listed below.

All nodes

  • total_cooks - Number of times the node has cooked.
  • cook_timestamp - Last time at which node cooked (in seconds).
  • cook_time - Time it took for the last cook.

All Components

  • num_children - Number of nodes in the component.

All Panel Components

  • select - Current button state.
  • lselect - Current left button state.
  • mselect - Current middle button state.
  • rselect - Current right button state.
  • u - Current mouse U position
  • v - Current mouse V position.
  • rollover - True when mouse is within panel boundary and not obstructed by sub panels.
  • inside - True when mouse is within panel boundary.
  • radio - Index of last selected child.
  • lradio - Index of last left-button selected child.
  • mradio - Index of last middle-button selected child.
  • rradio - Index of last right-button selected child.
  • radioname - Name of last selected child.
  • lradioname - Name of last left-button selected child.
  • mradioname - Name of last middle-button selected child.
  • rradioname - Name of last right-button selected child.
  • children - Number of panel components contained within.
  • display - Read-only version of display parameter.
  • enable - Read-only version of the enable parameter.
  • click - Button click count value, for multiple clicks.

Button COMP

  • state - Button state (dependent on button type)
  • lstate - Left button state
  • mstate - Middle button state
  • rstate - Right button state

Slider COMP

  • stateu - Slider U position.
  • statev - Slider V position.

Field COMP

  • field - String value of the field.
  • key - Last pressed key.
  • focus - Focus state of the field. (ie edit mode)

All SOPs

  • num_points - Number of points in the geometry.
  • num_prims - Number of primitives in the geometry.

All CHOPs

  • length - Length of CHOP, expressed in samples.
  • sample_rate - Samples per second (rate) of the CHOP.
  • num_channels - Number of channels in the CHOP.
  • time_slice - Whether or not the CHOP is timeseliced.

OSC In CHOP

  • read_index - Network transfer stats
  • time_queue_under_min_target
  • time_queue_over_max_target
  • queue_retarded_total
  • queue_advanced_total
  • queue_size_start
  • queue_added
  • queue_size_end
  • queue_bumped
  • read_repeat
  • read_filled
  • frames_received
  • send_receive_diff
  • local_clock_rate
  • remote_clock_rate
  • remote_elapsed_time
  • io_errors

Touch In CHOP

  • read_index - Network transfer stats
  • time_queue_under_min_target
  • time_queue_over_max_target
  • queue_retarded_total
  • queue_advanced_total
  • queue_size_start
  • queue_added
  • queue_size_end
  • queue_bumped
  • read_repeat
  • read_filled
  • frames_received
  • send_receive_diff
  • local_clock_rate
  • remote_clock_rate
  • remote_elapsed_time
  • io_errors

Pipe In CHOP

  • num_connected
  • num_cached

Audio Play CHOP - The following attributes have a suffix to indicate which index/sample they refer to. For example, using a DAT list the AudioPlay CHOP can contain a list of audio files, sample_state0 refers to the first file, sample_state1 the second file, and so on.

  • sample_state0 -
  • sample_time0 -
  • sample_length0 -
  • queue_read_pos0 -
  • queue_write_pos0 -
  • queue_length0 -
  • sample_name0_Notify

Audio Device Out CHOP

  • queue_speed
  • queue_read_pos
  • queue_write_pos
  • queue_length

Audio File In CHOP

  • file_length
  • file_length_frames
  • true_file_length
  • true_file_length_frames

All TOPs

  • start - Beginning frame of the image sequence.
  • length - Length of the image sequence.
  • sample_rate - Sample rate of sequence.
  • resx - Resolution width.
  • resy - Resolution height.
  • aspectx - Image aspect width.
  • aspecty - Image aspect height.

Movie File In TOP

  • index - Current image displayed.
  • index_fraction
  • read_ahead_misses - Disk caching statistics.
  • last_read_ahead_miss_wait
  • hard_drive_timeouts
  • num_pre_read_frames
  • first_index_to_read
  • cpu_movie_cache_hits
  • cpu_movie_cache_misses
  • global_cpu_movie_cache_hits
  • global_cpu_movie_cache_misses
  • last_hd_read_time
  • fully_pre_read
  • disk_read_bit_rate

Text TOP

  • text_width
  • text_height
  • cursor_start
  • cursor_end

Web DAT

  • download_progress
  • downloaded_size
  • total_size
  • connected
  • connected_error
  • communicating

See Also