dopfields expression function

Returns the value of a DOP field as a string.

Replaced by: hou.DopField, hou.DopData, hou.DopDataRecord

All Usage Examples

Usage

dopfields(dop, objectSpec, subDataName, recordType, recordNum, fieldName)

Since this function returns values as a string, it allows you to convert complex types such as vectors to the native type using the vector expression function.

See dopfield for more information.

Examples

vector(dopfields("/obj/dopnet1", "obj0", "Position", "Options", 0, "position"))

Gets the position of the object as a string and converts it into a vector.

dopfields("/obj/geo1/dopnet1", "Relationships/Spring_spring_constraint1", "", "ObjInGroup", 0, "objname")

Returns the name of the first object involved in a spring constraint relationship (e.g. "sphere2").

dopfields("/obj/geo1/dopnet1","sphere2","", "RelInGroup", 0, "relname")

Returns the name of the first relationship on an object (e.g. "Spring_spring_constraint1").