You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few issues I'd like to clarify in this posting.
First, if you open the mtlx in the attached zip, you are greeted by an error: unit_test.zip
While the error mentions meters, the line causing the issue is line #6 where the angle input is specified.
My understanding is that it's trying to convert the angle to meters.
Adding a unit attribute (like in the commented line #8) gets rid of the error and everything seem to work.
My concern is that, if I were to do something similar to the input above it (line #5, where I use "distance") and add a unit attribute there, when I check the material in Viewer and change the scene units in the Advanced Settings, the size does not adjust automatically any more.
I am not sure the unit attribute should be in the nodedef, and other libraries seem to only use the unittype there. But since I had to add it to the angle input, I'm afraid that might prevent the automatic scaling of the angle as it does for distances.
One other thing missing is that the Viewer allows us to change the distance units, but not the Angle one. If the above issue gets resolved we would need that to test it.
The text was updated successfully, but these errors were encountered:
There are a few issues I'd like to clarify in this posting.
First, if you open the mtlx in the attached zip, you are greeted by an error:
unit_test.zip
While the error mentions meters, the line causing the issue is line #6 where the angle input is specified.
My understanding is that it's trying to convert the angle to meters.
Adding a unit attribute (like in the commented line #8) gets rid of the error and everything seem to work.
My concern is that, if I were to do something similar to the input above it (line #5, where I use "distance") and add a unit attribute there, when I check the material in Viewer and change the scene units in the Advanced Settings, the size does not adjust automatically any more.
I am not sure the unit attribute should be in the nodedef, and other libraries seem to only use the unittype there. But since I had to add it to the angle input, I'm afraid that might prevent the automatic scaling of the angle as it does for distances.
One other thing missing is that the Viewer allows us to change the distance units, but not the Angle one. If the above issue gets resolved we would need that to test it.
The text was updated successfully, but these errors were encountered: