[Sidefx-houdini-list] dopfield() function
b.fx at free.fr
Fri Oct 19 07:12:35 EDT 2007
You can find a lot in "houdini rigid body DVD", from C. Zerouni.
A basic example :
dopfield("/obj/dopnet1", "rbdobject1", "Position", "Options", 0, "ry")
/obj/dopnet1 is the first branch
rbdobject1 the second one
Position the third branch, data name
Option the forth branch, recordType, in the Position branch
0 is the record num there is only one in position see below
ry is the properties name you ask.
record num make sense if you try to access impacts for example:
At the Impacts record type in the detail view there will be an impact record
option. There you will have a spreadsheat, each line is accessible with
recordNum then each column with fieldName
dopfield("/obj/dopnet1", "rbdobject1", "Impacts", "Impacts", 0, "positionx")
you can do some test in the textport using to display tour data.
echo `dopfield("/obj/dopnet1", "rbdobject1", "Impacts", "Impacts", 0,
hope this help
Selon Oodini <svdbg at free.fr>:
> In the help, the dopfield() prototype is :
> dopfield(dop, objectSpec, subDataName, recordType, recordNum, fieldName)
> But the recordType and recordNum are not described at all.
> Would it be possible to get some info about them ?
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list