Jump to content

gather values in the scene and convert to sop attribute


Recommended Posts

Hello folks how is it going? :D

So I am working on a really cool spine setup and as soon as It will be done i will share it with you all ! so for now I am computing the most of my math inside a vopsop like the twist etc.

What I would like to do now tho is to be able to bring all the bone length attributes inside the vop sop.

I need to get all of them and convert it in an array attribute like it can be the P or N.

Do you guys have any idea how to do that ? If possible I would like to avoid a python node but not afraid to use it XD

Edited by giordiTD
Link to comment
Share on other sites

I thought you are looking for opposite direction

parameters from lot of bones to VOPs to process, then possibly back

you can use ch() function in VEX, to get any parameter the same way as with expressions (no VOP equivalent)

or more intuitively use CHOPs to gather the values from thousands of objects, then get the data to SOPs as attributes using Channel SOP then in VOP SOP do whatever you want

and the same way back, get attribute to CHOPs and export to thousands of objects instead of getting it by point expression, but you can do that too

if you are confident enough you can use VOP CHOP directly to process the data, but it's much more powerful to use VOP SOP especially if number and type of the output values doesn't match the input data

Link to comment
Share on other sites

I thought you are looking for opposite direction

parameters from lot of bones to VOPs to process, then possibly back

you can use ch() function in VEX, to get any parameter the same way as with expressions (no VOP equivalent)

or more intuitively use CHOPs to gather the values from thousands of objects, then get the data to SOPs as attributes using Channel SOP then in VOP SOP do whatever you want

and the same way back, get attribute to CHOPs and export to thousands of objects instead of getting it by point expression, but you can do that too

if you are confident enough you can use VOP CHOP directly to process the data, but it's much more powerful to use VOP SOP especially if number and type of the output values doesn't match the input data

yeah I actually wanted to bring the bone length in the vop sop but at the end I need an expression anyway to set the final length from the vopsop to the bone by using point , so I just calculated the ratio for each bone in the vop sope and multiplied it on the bone lenght . But thaks for the tip

Edited by giordiTD
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...