Procedural channel duplication in CHOPs

   6430   6   2
User Avatar
Member
581 posts
Joined: July 2005
Offline
I have some CHOPs that are exporting channel to control the blend parameters of blendShape SOP.
That I want to do is to create a wave using a wave CHOP and then duplicate this wave, creating same number of channels as operators connected to my blendShape, all the channels are the same but I need to automete the process of duplicating the original wave using the number of blends in a blendShape.
The only Copy operator in CHOPs that I know is Copy CHOP that needs a second input to copy channels to, there isn't a “normal” copy that only duplicate channels? Like the Copy SOP when you don't have a template connected.

Thanks
Un saludo
Best Regards

Pablo Giménez
User Avatar
Member
1192 posts
Joined: July 2005
Offline
If it's in fact the same channel, you can use the Export CHOP and it's “path” field. This enables you to export the same channel to many targets.
Another way would be:
Place a Constant CHOP, in the Common tab choose Units: Samples;
In the Chanel Tab uncheck “Single Frame” and then in the “End” field put the number of copies you need;
Append a Shuffle CHOP and set it to Split All Samples;
Place your Wave CHOP, and append a Math CHOP to it;
Pipe the Shuffle CHOP as a second input to the Math CHOP;
Set the Math CHOP to: Combine CHOPS: Add (make sure the value of your constant CHOP channel is 0); Match By: Channel Number;

Dragos
Dragos Stefan
producer + director @ www.dsg.ro
www.dragosstefan.ro
User Avatar
Staff
5161 posts
Joined: July 2005
Offline
Using a wildcard character in the Export CHOP (? or *), you can match multiple channels and/or nodes to a CHOP's channel:

Channels: (your channel name)
Node: /obj/blend1
Path: blendw?

Because of this, copying full channels in CHOPs isn't as needed as in SOPs.
User Avatar
Member
581 posts
Joined: July 2005
Offline
digitallysane
If it's in fact the same channel, you can use the Export CHOP and it's “path” field. This enables you to export the same channel to many targets.
Another way would be:
Place a Constant CHOP, in the Common tab choose Units: Samples;
In the Chanel Tab uncheck “Single Frame” and then in the “End” field put the number of copies you need;
Append a Shuffle CHOP and set it to Split All Samples;
Place your Wave CHOP, and append a Math CHOP to it;
Pipe the Shuffle CHOP as a second input to the Math CHOP;
Set the Math CHOP to: Combine CHOPS: Add (make sure the value of your constant CHOP channel is 0); Match By: Channel Number;

Dragos
Thanks digitalinsane, it works perfectly very clever the technique, now with the adition of a couple of espressions the system is complitely procedural and I can control every blandShape with CHOPs.
Thanks to twod, I am already using wildcards to export my channels,
Un saludo
Best Regards

Pablo Giménez
User Avatar
Member
557 posts
Joined: July 2005
Offline
Unless I'm missing something, can't you just do this in one CHOP?

Put down the Wave CHOP, and then in the Channel tab, where it says Channel Name, put
chan

Bingo - 9 identical channels of wave. And if you don't know in advance how many copies of the wave you need, you can still do this
chan
and it should work.
User Avatar
Member
1192 posts
Joined: July 2005
Offline
Hm,

It works beautifully, but it's too simple and too obvious. 8)

Dragos
Dragos Stefan
producer + director @ www.dsg.ro
www.dragosstefan.ro
User Avatar
Member
581 posts
Joined: July 2005
Offline
craig
Unless I'm missing something, can't you just do this in one CHOP?

Put down the Wave CHOP, and then in the Channel tab, where it says Channel Name, put
chan

Bingo - 9 identical channels of wave. And if you don't know in advance how many copies of the wave you need, you can still do this
chan
and it should work.
Thanks Craig, it works perfectlt, I forget the use of square brackets for ranges.
Un saludo
Best Regards

Pablo Giménez
  • Quick Links