Jump to content

Detail VEX Function does not working


Sergey Pesotsky

Recommended Posts

Hi,

I have two controller-nulls, with the same parameters. In one of them, parameters are animated.

I created an attribute from "Del_Sys_Moving" parameter, and then, I want to switch between static and animated attributes values.

Then, I want to use this attribute value in pathdeform node as "curve_posoffset" parameter, by using the "detail function". But, it does not work :(

Also, I have tried to write "details" (not "detail") with backtick, for HScript, but it also not working.

What I do wrong? How can I write the value of detail attribute from one node, to parameter of another node?

Thank you! And sorry for my English :)
 

2021-07-14_002748.png

Edited by Sergey Pesotsky
Link to comment
Share on other sites

If I create an attribute using AttributeWrangle, for example, so it works fine! In Geometry Spreadsheet the attribute has a familiar look: first column - name, second - value. And common VEX detail function is working fine.

So, the question boils down to how to write the attribute name to the detail function correctly. Because when an attribute creates by "attribfromparm" node - it has an unusual look:

2021-07-14_230633.png

Link to comment
Share on other sites

Only python can write to parameters, Vex can't yet.

Read the help card on attribfromparm. It makes a dictionary, not a simple float value. 

Try replacing that node with an attributewrangle running in Detail mode.

setdetailattrib(0,"my_float", 3.14159,"set");

You could add a parameter to the attribute wrangle and fetch that value from vex to write.

setdetailattrib(0,"my_float", ch("my_float"),"set");

After that, you could drive the local channel with a relative reference from your source value.

ch("../controller_parms/some_value")

These kinds of setups are often kludgy and may suffer from refresh problems. You may want to re-think your entire setup.

Edited by Atom
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...