Jump to content

How to get live op data from channel expression


mattjakob

Recommended Posts

I added a custom operator interface to a Point Wrangle node to get a point position (from an add node). In the screenshot below I'm referring to the 'Target' string input in the UI / parameter name 'opPath');

Using the standard chs() function I can get the value of the node dropped into Target/opPath. Using the op: operator I was assuming this data would be live (eg. if I move the point geometry referenced in Target/opPath I was expecting the coordinates returned to the point() function to change accordingly) ... but it doesnt happen (stays whatever value is set at frame 0).

The solution (screenshot) is to hard code the path to the target object using the op:operator (position coordinates get update if the geometry changes). If I uncomment the first line (and comment the second)  then the coordinates no longer get updated.

It's annoying as I'd rather not hardcode the path to the object in VEX and rather use the chs() UI interface.

 

Any idea?

(also some clarity on how the op: operator works and when is it needed versus just referencing paths without it would be appreciate as couldnt find much on the subject)

 

THANKS!

 

 

 

 

Screenshot 2017-12-04 17.54.27.png

Link to comment
Share on other sites

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