Jump to content

Dopnet accessing parameter in Gasfieldwrangle


trebz7

Recommended Posts

Hello,

I'm trying to access a microsolver in the Dopnet. I would like to get e.g the disturbance parameter of the disturbance node, which has the parameter name: "dist_scale".

With a Gasfieldwrangle node I can access e.g @vel, @density.. basically attributes.. which is working fine if I am changing them.

But if I want to access the parameter and try to change it, nothing happens. I tried it with @dist_scale or relative/absolute channel reference.


Thanks!

Link to comment
Share on other sites

Well, a parameter on a node is not an attribute or a field of data. Attributes are linked to the geometry.

vel and density are fields of vectors or scalar. They are attributes linked to a fictitious primitive that store volumetric data (voxels).

If you want to read a parameter in VEX, use the vex expression chf() for a float, chi() for an integer etc.

example chf(‘’path to the node with the wanted parameter / parameter ‘’)

And seeing another question on the forum, ch() is only to read, not change a parameter.

Hope the difference is clear.

  • Like 1
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...