Justin K Posted January 29, 2018 Share Posted January 29, 2018 Hello! what is the correct syntax for correctly declaring an empty matrix3 in vex? Atypically most people just use matrix3 mat = ident(); Can I decalre a matrix the same way I would a vector or float? (I just want to see all my variables on the spreadsheet while working through some code ) Example @N = {0,1,0); @f = @ptnum; I can see these on the spreadsheet matrix3 mat = ident(): I cannot Also, what are the technical terms for one versus the other? -- local attributes (no @ symbol) versus global variables (@symbol)? Thanks! Quote Link to comment Share on other sites More sharing options...
coltonmil Posted January 29, 2018 Share Posted January 29, 2018 (edited) Hey Justin, To declare a 3x3 matrix the way you're trying to: 3@mat = ident(); 2@ for 2x2 and 4@ for 4x4. The technical terminology is attribute with the @ symbol, and a parameter when it's just within the snippet. Edit: here's a lot more info http://www.sidefx.com/docs/houdini/vex/snippets.html Edited January 29, 2018 by coltonmil Quote Link to comment Share on other sites More sharing options...
Justin K Posted January 30, 2018 Author Share Posted January 30, 2018 1 hour ago, coltonmil said: Hey Justin, To declare a 3x3 matrix the way you're trying to: 3@mat = ident(); 2@ for 2x2 and 4@ for 4x4. The technical terminology is attribute with the @ symbol, and a parameter when it's just within the snippet. Edit: here's a lot more info http://www.sidefx.com/docs/houdini/vex/snippets.html Thanks! 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.