schiho Posted July 30, 2018 Share Posted July 30, 2018 (edited) In Vex I create a vector as following: v@test = set(1,2,3); However this results in vector with indexes (test[0], test[1], test[2]) How do I have it so that i actually uses literals (test[x], test[y], test[z]) Edited July 30, 2018 by schiho Quote Link to comment Share on other sites More sharing options...
toadstorm Posted July 30, 2018 Share Posted July 30, 2018 You can address the components of vectors using v@test.x, v@test.y, v@test.z in VEX. If you mean the appearance of the vector components in the Geometry Spreadsheet, you can use the setattribtypeinfo() VEX command to set the type to one of the defined types in the help page: http://www.sidefx.com/docs/houdini/vex/functions/setattribtypeinfo.html 1 Quote Link to comment Share on other sites More sharing options...
Sepu Posted July 30, 2018 Share Posted July 30, 2018 look at the setattribtypeinfo vex function http://www.sidefx.com/docs/houdini/vex/functions/setattribtypeinfo 1 Quote Link to comment Share on other sites More sharing options...
schiho Posted July 30, 2018 Author Share Posted July 30, 2018 Thanks guys, was actually looking for setattribtypeinfo. Need this to write alembics, as that changes the alembic type for that attribute too. 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.