SOLVED Creating relative channel references with attribute

   Views 524   Replies 2   Subscribers 1
User Avatar
Member
40 posts
Joined: March 2014
Online
Hey All,


Is it possibly to automatically create channel references based on an attribute in vex or alike?

I created a lot of parameters automatically from a json in my hda with names of meshes for a tiling set, following a python tutorial. I have points with a "name" attribute and I want to hook up a channel reference to the corresponding parameter in the hda - so the point gets a relative reference to the parameter with the matching name. Without me having to do it manually with right-click Copy Parameter - "Paste Relative Reference".

Example: I have a point named "corner_left" I want it have a relative channel reference the parameter channel "corner left" in the hda. Is that possible?

I tried creating a channel path with ch("../" + name) in vex but the value in the channel wasn't actually referenced.

I'm assigning paths to meshes in unreal to the points, any help appreciated!
Edited by stinzen - Feb. 7, 2025 07:02:28

Attachments:
Skärmbild 2025-02-05 200957.png (699.3 KB)

User Avatar
Member
9083 posts
Joined: July 2007
Offline
stinzen
I tried creating a channel path with ch("../" + name) in vex but the value in the channel wasn't actually referenced.
Sounds point wrangle should work
s@unreal_instance = chs("../" + s@name);
As long as the parms are on the parent node of the wrangle
Edited by tamte - Feb. 6, 2025 17:46:54
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
40 posts
Joined: March 2014
Online
That did work thank you! I think I was just overcomplicating things
  • Quick Links