Jump to content
axelsp

[CROWD] Randomizing wrist orientation

Recommended Posts

Hello everybody!

I've got one agent for a crowd simulation. He's holding a sword on his R_hand. When using Agentedit node, Im able to adjust transformations of that controller, which is great, but it affects all agents in the same way. =(

What would be the approach to randomize the wrist rotation to get some variation over to the crowd sim ?

Thanks!

 

Share this post


Link to post
Share on other sites

One suggestion might be is to run a point wrangle after your crowd_source targeting the packed agents.

Then use agentrigfind() to look for the wrist part of the rig. This would return an ID that you could use with the agentlocaltransform() function. From here you would now have a transform matrix that you can randomize, then just write it back to your agents using setagentlocaltransform()

Conceptually I believe that would be the workflow :lol:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×