Jump to content

CHOPs, VEX and the future of chops in Houdini


ikoon

Recommended Posts

I am looking for a VEX equivalent of chop() expression.

I have tried the ch() function as attached. I know, that ch() in the Wrangle is usually used to read the Parameter from the Interface. But the help file says "Evaluates a channel (or parameter) and return its value."

Am I close, please? What is the best practice for this?

vex to chop.PNG

vex read chop.hiplc

Edited by ikoon
Link to comment
Share on other sites

22 minutes ago, Atom said:

You can back tick hScript code into a vex expression but that is getting messing.


v = `chop("/ch/ch1/wave1/chan1")`;

 

The time dependency is lost when HScript is backticked into a wrangle so this won't work for an animated channel?

  • Like 1
Link to comment
Share on other sites

Thank you very much! I have tried these approaches:

A] backtick method
- unfortunately it seems to evaluate only on the first frame

B] export chop
- I have tried to make it "automatic" with this code in the export chop: `run("chopls ../OUT")`
- everything works fine, but if I add channel, I have to restart Houdini (or delete/undo the chopnet) to make that `run` code initialize (you can see the attachment and try to add more channels).

C] channel sop and geometry sop
- this combination is great, but what if I would like to have just one channel to affect one detail attribute and not to evaluate all the points?


It seems to me, that CHOPnet in Houdini is quite "abandoned area".
Am I right? I am quite new to Houdini. Everything seems to be a workaround in chops:
- for example the `run(chopls)` backtick listing, generated by Motion FX. It is a combination of HScript() and Expression language
- also that UI message "Overridden by /obj/geo1/chopnet1/export1"
- it seems, that there is no vex equivalent of chop() expression

I would love to use chops to make the animations visually appealing using chops and these principes. I think that these principles work not only in the cartoon, but also in VFX and Motion design:

http://the12principles.tumblr.com/post/84179271499/anticipation
http://the12principles.tumblr.com/post/84177204689/follow-through-overlapping
http://the12principles.tumblr.com/post/84179300674/squash-stretch

What do you think will be the future of Chops? I mean, is there a market for these simple "nonvfx" chops/vex? Are people using it? I see the chops to be somehow distracted (motion fx / agents / animation layers / ui implementation). On one hand, CHOPs seem to be everywhere in Houdini, but on the other hand ... that `run("chopls ../OUT")`

vex read chop - A - backtick - v0.hiplc

vex read chop - B - export chop - v0.hiplc

Edited by ikoon
Link to comment
Share on other sites

  • 4 months later...

I have tried this new VEX function "chattr" but unfortunately I have not succeeded:
https://www.sidefx.com/docs/houdini/vex/functions/chattr

It is strange, that I got "undefined function" error. I think I am doing it wrong, but also ... isn't it a bug? I am not that skilled to decide.

 

chattr.PNG

Edited by ikoon
Link to comment
Share on other sites

Dedeks, you are right. In the Channel Wrangle, the function is working.

So my old question probably remains unanswered with H16 ... or can we reference CHOP directly from the SOP wrangle in H16?

Link to comment
Share on other sites

For me , the Atom method seems OK but instead of using the export flag in your parm , just use the chop() expression directly ,

and in your code just reference your parm with ch() expr.

 

Concerning CHOP and his future , Houdini 16 come with  really good stuff ,  look at the constraint system and  the channel Wrangle .

On the other hand,  accessing chop data directly from vex  code would be great :)

vex read chop.hipnc

Edited by dedeks3000
correction
  • Like 1
Link to comment
Share on other sites

  • 1 year later...

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