omsbind command

Binds an operator parameter to a selector

Replaced by: hou.selectorBindings

All Usages Options Examples

See also: omsbindinfo, omsls, omsunbind, omswhere

Usages

  1. omsbind [-t obj|sop|pop|cop2] op_parm selector sel_description sel_prompt op_input_index op_input_required primmask allow_drag menu_name ast_sel_all

Options

-t obj|sop|pop|cop2

Network type. Default is sop.

op_parm

the operator and the parameter to be bound, delimited by a colon. The parameter specification is optional.

selector

Name of the selector type. A list of selectors can be obtained using the omsls command.

sel_description

Description of the purpose of the selector. Used with omsunbind.

sel_prompt

The string that is displayed in the status area when the selector is active.

op_input_index

Index of operator input where the result of this selection should be fed.

op_input_required

Whether this input is required.

primmask

A string representing the types of primitives that can be picked using this selector.

This string can have one or more primitive types, or primitive types preceded by a “^” to remove that primitive type from the selectable primitive types.

The available primitive types are: all, face, poly, nurbcurve, bezcurve, hull, mesh, nurb, bez, quadric, circle, sphere, tube, particle, and meta.

allow_drag

Whether the user is allowed to select and begin manipulation with a single mouse click.

menu_name

Name of the operator’s “Group Type” parameter (or “” if there is none). This lets the selector set this parameter to “Primitive” if the user selected primitives, “Points” if the user selected points, etc.

ast_sel_all

If set to a non-zero value, this indicates that the group parameter requires a “*“ to select all geometry. A zero value indicates that the group parameter should be left blank if the whole geometry is selected.

Examples

omsbind -t obj blend objselect "Second Input" "Select the second blend input" 1 1 all 0 "" 0
Binds a simple object selector to the second input of the blend object.