Sergey Pesotsky Posted July 13, 2021 Share Posted July 13, 2021 (edited) 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 Edited July 13, 2021 by Sergey Pesotsky Quote Link to comment Share on other sites More sharing options...
Sergey Pesotsky Posted July 14, 2021 Author Share Posted July 14, 2021 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: Quote Link to comment Share on other sites More sharing options...
Atom Posted July 14, 2021 Share Posted July 14, 2021 (edited) 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 July 14, 2021 by Atom Quote Link to comment Share on other sites More sharing options...
Sergey Pesotsky Posted July 15, 2021 Author Share Posted July 15, 2021 Atom, thank you very much! Yes, you are right, attribfromparm makes a dictionary. In the help written that we can call to the value of the key by just using "." between the attribute name and key name. So I try it, and it was working! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.