Jump to content

Geometry attribute Array examples


Barakooda

Recommended Posts

Hi to all,
Its been long time since I actually had to use Houdini.
Someone can help me with link or example to the following  .

I want to round every weight float attribute in the boneCapture array.

looking for example to all methods , such as
Vop
Vex
Python
Attribute Wrangle
etc...

Also - I tried to access the point array attribute but i`m not really understand how i`m write it down  \ what is the  type of the attribute .from looking on the spreadsheet.

thank you for the help

 

boneCapture.jpg

boneCaptureAttribs.bgeo

Edited by Barakooda
Link to comment
Share on other sites

for rounding attribute values you can use several vex functions. for instance, in wrangle SOP: 

@attribute = int(@attribute); 

this will round individual values to the closest integer

otherwise there is floor() and ceil() functions that will round values down and up respectively.

for arrays, not sure what exactly you need, but you may want to check out this article that covers basic arrays manipulation in wrangle SOP: https://wordpress.com/view/vfxbrain.wordpress.com

hope that helps. cheers, D.

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