Jump to content

Acces the string attribute


kubabuk

Recommended Posts

Hi all,

I can't overcome this problem. How do I access string attribute stored in a point?

Help says strings are added as index attributes, and indeed I am getting various integer values but how can get a string itself?

Thanks.

kuba

Link to comment
Share on other sites

Hi all,

I can't overcome this problem. How do I access string attribute stored in a point?

Help says strings are added as index attributes, and indeed I am getting various integer values but how can get a string itself?

Thanks.

kuba

Use the points() expression.

/ -> exhelp points
string points (string surface_node, float point_number, string attribute)
		EXAMPLES
		  | points("/obj/geo1/facet1", 3, "instance")
		  | 
		  Returns the string associated with the string attribute "instance"
		  for point 3 in the facet1 surface node in geo1.


		REPLACED BY
			- hou.Geometry
			- hou.Point

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