Jump to content
crispr_boi

Can chramp shape be animated / controlled by a audio (spectrum chop)

Recommended Posts

How can we control the shape of a chramp (created in a point wrangle) with a spectrum chop and therefore animate the shape?

I already posted a question related to this, but maybe it was worded confusingly or seemed difficult..as no one answered.

So I am asking generally, alternative solutions are welcome.

 

 

 

Share this post


Link to post
Share on other sites
Posted (edited)

@crispr_boi here you have 3 ex ..for one of them you must have HMT..Have fun and post your final result.:rolleyes:

 

RampattributsChop.hiplc

and you get some answer elsewhere

with spare parm

 

import random 

node = hou.node("../pointwrangle1") # has a ramp spare parameter called "r" on it
geo = node.geometry()

random.seed(hou.frame() + 123)
a = random.uniform(0, 1) # get your chop value here somehow

r0 = node.parmTuple("r1value")
r0.set([a])

random.seed(hou.frame() + 456)
b = random.uniform(0, 1)

r1 = node.parmTuple("r2value")
r1.set([b])

 

Edited by Librarian

Share this post


Link to post
Share on other sites
Posted (edited)

So, I installed the HMT toolset, it seems like I can create the HMT nodes without issues.

But when opening your file, everything on the left in "do operation with standard point attributes" does not cook, because of errors.

So the example on the left doesn't work for me.

 

And the examples on the right seem to work well, but I am not good enough to understand it and combine it my setup, I'm afraid.

I appreciate your help Tesan, but your setup is too advanced or confusing for me to combine with my setup, sorry.

One day..

 

Is this VEX code in your post somewhere in the file? I couldn't find it..

Would you tell me where it is, or where you find it and what it does?

Edited by crispr_boi
forgot something

Share this post


Link to post
Share on other sites

I would like to know, how to animate the chramp's shape (in the linked post), with the spectrum chop.

Like how do I get the spectrum chop's value there?

Share this post


Link to post
Share on other sites

@Librarian I am not good enough to use their advice in my setup. I don't know how to modify the Python code to use it in my setup.

I tried it, but failed.

I also don't understand how to feed the chopnet  data into the setup.

 

Share this post


Link to post
Share on other sites

@Librarian someone posted a solution to my original post on OdForce, if you want to have a look.

 

  • Like 1

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

×