Jump to content

Using Width attribute of L-system in Wire Object?


masquerade

Recommended Posts

Hi,

I am working on a L-system animation. I want that the tree gets affected by the forces, relatively to the width of its trunk. There is a width attribute in the wire objects physical tab, but I couldnt figure out how to use point width values of l-system tree in here. I tried using the point() expression like this:

point("/obj/LSYSTEM/NODE_WITH_WIDTH_ATTRIBUTE", $OBJID, "WIDTH",0)

but I think $OBJID refers to the objects, not the points, thats why I get the same value for all the points.

How can I assign correct width values per-point?

Thanks in advance.

Link to comment
Share on other sites

Wire Object automatically takes "width" attribute from your geometry and multiplies it with Width parameter for final wire width

so if you already have "width" point/vertex attribute with correct width, just set Width parameter on Wire Object to 1 and turn on Visualization to see if that's correct

Link to comment
Share on other sites

Wire Object automatically takes "width" attribute from your geometry and multiplies it with Width parameter for final wire width

so if you already have "width" point/vertex attribute with correct width, just set Width parameter on Wire Object to 1 and turn on Visualization to see if that's correct

:blink:

I cant believe how I missed that.. Thank you very much. :)

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...