BlackPariah Posted August 26, 2018 Share Posted August 26, 2018 Hello! I'm trying to create a channel parameter but with the exception that I want it's input or it's value to be driven by a variable & not a user input/slider. Am I even going about it the right way? I just want to get my variable (it's just a float) out of the vex wrangle and on to the UI at the bottom. So basically the opposite of pumping a value into a wrangle. Is this even doable? Channel_Parameter_from_variable.hipnc Quote Link to comment Share on other sites More sharing options...
Atom Posted August 26, 2018 Share Posted August 26, 2018 (edited) I don't think VEX can write to channel parameters yet. It can read from them. However, python can. If that is your goal, alter your code to use python instead. n = hou.node("/obj/my_node") n.parm("my_display_parm").set(my_value) Edited August 26, 2018 by Atom 1 Quote Link to comment Share on other sites More sharing options...
BlackPariah Posted August 26, 2018 Author Share Posted August 26, 2018 That's a bummer :| I was planning on using the output to drive parameters on other nodes (copy/paste relative reference etc..) I don't know anything about python... just learning vex is daunting enough for a non-programmer lol. But it's good to know that the functionality is missing at the moment. Does SESI have any plans to add it? Something like: ochf("parametername", myvariable); to output a float channel would be nice :s Quote Link to comment Share on other sites More sharing options...
Atom Posted August 26, 2018 Share Posted August 26, 2018 Anything you want to do by "setting a parameter" can be done with attributes. You could store your value as a detail attribute then fetch that value using a detail expression. It would basically be the same as fetching a value using a relative reference expression. 1 Quote Link to comment Share on other sites More sharing options...
BlackPariah Posted August 26, 2018 Author Share Posted August 26, 2018 Yes that did it! Thank Atom! Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted August 26, 2018 Share Posted August 26, 2018 @AtomIs this the same as putting a expression variable inside a string expression which the user can then enter some text (string of characters) ? For example, suppose you have a expression variable $SuperDuper when using that expression variable, the user is then prompt for some text, and so the text entered by the user, replaces the expression variable ? Quote Link to comment Share on other sites More sharing options...
Atom Posted August 26, 2018 Share Posted August 26, 2018 No, it's not like that. Detail is just a global storage area on a node. So it is not point based, vertex based or primitive based. If you want to store a value associated with a node, you can place it in the Details attribute context of the node. Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted August 27, 2018 Share Posted August 27, 2018 @Atom I was not talking about storing a value associated with a node, rather using a variable in a string expression. Quote Link to comment Share on other sites More sharing options...
oblong Posted August 28, 2019 Share Posted August 28, 2019 ok this is a year late, however I have issues trying to set a param value on a switch sop higher up the chain. For some reason it does not obey the set value. Same applies for an attribute. You cannot set the attribute to update earlier in the chain ( for eg driving a switch ). Not sure how to automate this. Quote Link to comment Share on other sites More sharing options...
aardvark Posted March 12, 2021 Share Posted March 12, 2021 On 8/28/2019 at 3:19 AM, oblong said: ok this is a year late, however I have issues trying to set a param value on a switch sop higher up the chain. For some reason it does not obey the set value. Same applies for an attribute. You cannot set the attribute to update earlier in the chain ( for eg driving a switch ). Not sure how to automate this. @oblongdid you solve the problem of setting a switch node index upstream? 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.