GlennimusPrime Posted October 7, 2021 Share Posted October 7, 2021 (edited) How would I go about accessing specific camera attributes in VEX? I have a subnetwork with a camera operator path input field. Inside that subnetwork I'd like to access camera attributes from whichever camera is in that operator path field. I'm unfamiliar with these types of attributes, as they are not point or primitive attributes. Inside the subnetwork I have a wrangle set to run over detail attributes, which I can access the camera focus by using the regular copy / paste relative reference method, but this doesn't use the operator path input field back up on the subnetwork itself. Kind of confused as to how I would go about this. I have a feeling I'm messing something up to do with mixing string / float attributes? Access_Camera_Attributes_In_VEX.hip Edited November 2, 2021 by GlennimusPrime Quote Link to comment Share on other sites More sharing options...
animatrix Posted October 9, 2021 Share Posted October 9, 2021 Hi Glenn, I would recommend doing it like this: Quote Link to comment Share on other sites More sharing options...
GlennimusPrime Posted October 31, 2021 Author Share Posted October 31, 2021 Hi sorry for the late reply! I didn't get the notification someone had replied. Thank you, good to know this is a way to access those attributes in VEX, although I'm trying to make an HDA, so would like the user to be able to select their own camera. How could I then go about linking that camera selection to this focallen attribute you have created? Quote Link to comment Share on other sites More sharing options...
animatrix Posted October 31, 2021 Share Posted October 31, 2021 Hi, you can do something like this: Quote Link to comment Share on other sites More sharing options...
GlennimusPrime Posted November 2, 2021 Author Share Posted November 2, 2021 Right ok that's great! I'm still learning the ropes with vex, so this helps out a lot. So first define what the string 'cam' actually is, by referencing the camera input field and then access that later using the cam string. Thanks for this! 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.