Jump to content

Problem with viewing dopfield() values


Recommended Posts

Hai guys,

This is a small doubt I got, I tried it but its not solved.

How to view dopfield() values in dops. I want to use it as expressions.

I watched Gnomon RBD tutorial, in that he explained use "echo 'dopfield(.....)'" to check the values of the expression. I tried it but

" echo 'dopfield(".", $OBJID, "Position", "Options", "angvel")'

dopfield(".", $OBJID, "Position", "Options", "angvel") "

This is the result which I got. Can any one help me where can I check values.

dopfield_expr.hipnc

Link to comment
Share on other sites

As of Houdini 11, you can drag DOPs data from the Details View into either the Python Shell or Hscript Textport and it will give you the relevant Python code or Hscript expression to extract said data. You can also drag directly into parameters as well.

For Hscript, dragging to parameters can be more useful as if you drag to the textport Houdini will often use the string equivalents of some expressions for that case, which might not be what you want.

Edited by graham
Link to comment
Share on other sites

As of Houdini 11, you can drag DOPs data from the Details View into either the Python Shell or Hscript Textport and it will give you the relevant Python code or Hscript expression to extract said data. You can also drag directly into parameters as well.

For Hscript, dragging to parameters can be more useful as if you drag to the textport Houdini will often use the string equivalents of some expressions for that case, which might not be what you want.

Hi graham, It is helpful for me, but if I want to write expression like, when ever the impact happens then only gravity has to active. Can u help me..

Link to comment
Share on other sites

Hi graham, It is helpful for me, but if I want to write expression like, when ever the impact happens then only gravity has to active. Can u help me..

Graham its working I did a mistake in writing expression, Instead of ` I use '.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...