atron Posted August 1, 2017 Share Posted August 1, 2017 hi there, I have a global attribute that i've made in a python node: citySearcherDistanceTrav = geo.addAttrib(hou.attribType.Global, 'citySearcherDistanceTrav', '') i've then set the attribute with some floats totalDistance = self.stepSize * hou.frame() #speed * time = distance travelled dt = str(totalDistance) geo.setGlobalAttribValue('citySearcherDistanceTrav',dt) #see image 1 But i can't seem to access the values in the next node directly below. I tried find global attrib not sure how to access the data in a python node again. A Quote Link to comment Share on other sites More sharing options...
Atom Posted August 1, 2017 Share Posted August 1, 2017 The Copy node throws away attributes by default. Go to the Attributes tab of the Copy and add your attribute name to the list for downstream forwarding. Quote Link to comment Share on other sites More sharing options...
atron Posted August 1, 2017 Author Share Posted August 1, 2017 3 hours ago, Atom said: The Copy node throws away attributes by default. Go to the Attributes tab of the Copy and add your attribute name to the list for downstream forwarding. Hi Atom, I can only see copy local variables which is checked. And then the standard topoint,toprimitive,to vertex , set ,mult, add and subtract table. What list do i add the variable to. 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.