How to read attribute in uvproject node
2165 4 1-
- julca
- Member
- 241 posts
- Joined: Oct. 2015
- Offline
-
- julca
- Member
- 241 posts
- Joined: Oct. 2015
- Offline
I made a step by step to explain better my problem (cf. “attribute_stepByStep.gif”) :
-1- I have an detail attribute parameter (vector {2, 15, 15})
-2- I reference this attribute inside my transform node on x Translate with “@attributeTest.x” and it works
-3- Strangely, as it works and make the transformation, when I click on the parameter to show the evaluated value, it returns 0 instead of 2. I don't understand this because it's an detail attribute (bug or missing feature ?).
-4- On my uvproject node I put in Rotate parameter my attribute “@attributeTest.x”, “@attributeTest.y” and “@attributeTest.z”. But it doesn't do anything
.
-5- As well as on the transform node, parameter can't be evaluated/displayed and return me 0 on each rotate component.
-6- Now, if I copy the attributeTest value parameter from his node creation (“attribute_create”)
-7- and paste it as reference to my rotate parameter (“uvproject” node),
-8- it works.
-9- and also value can be displayed.
Why it can't work with my attribute variable ?
I need to use this variable attribute because I need to make some operations before, inside an “attribute VOP”.
I hope that's clear, thanks.
-1- I have an detail attribute parameter (vector {2, 15, 15})
-2- I reference this attribute inside my transform node on x Translate with “@attributeTest.x” and it works
-3- Strangely, as it works and make the transformation, when I click on the parameter to show the evaluated value, it returns 0 instead of 2. I don't understand this because it's an detail attribute (bug or missing feature ?).
-4- On my uvproject node I put in Rotate parameter my attribute “@attributeTest.x”, “@attributeTest.y” and “@attributeTest.z”. But it doesn't do anything

-5- As well as on the transform node, parameter can't be evaluated/displayed and return me 0 on each rotate component.
-6- Now, if I copy the attributeTest value parameter from his node creation (“attribute_create”)
-7- and paste it as reference to my rotate parameter (“uvproject” node),
-8- it works.
-9- and also value can be displayed.
Why it can't work with my attribute variable ?
I need to use this variable attribute because I need to make some operations before, inside an “attribute VOP”.
I hope that's clear, thanks.
-
- Doudini
- Member
- 333 posts
- Joined: Oct. 2012
- Offline
-
- julca
- Member
- 241 posts
- Joined: Oct. 2015
- Offline
Thanks Doudini,
That's a really bad news for me.
I try your suggestion but in my case the uvtransform doesn't fit (I need to stay in 3D context instead the 2D of the uvtransform node).
I think the only option for me is to write my expression/code directly inside the parameter.
Just for the info, I'm currently making an asset for a cubic projection like in any other 3d app and this point is the only last thing that I need to do !
In anyway, thanks.
That's a really bad news for me.
I try your suggestion but in my case the uvtransform doesn't fit (I need to stay in 3D context instead the 2D of the uvtransform node).
I think the only option for me is to write my expression/code directly inside the parameter.
Just for the info, I'm currently making an asset for a cubic projection like in any other 3d app and this point is the only last thing that I need to do !
In anyway, thanks.
-
- julca
- Member
- 241 posts
- Joined: Oct. 2015
- Offline
-
- Quick Links