Linwood Posted September 15, 2015 Share Posted September 15, 2015 Hi matesthis is my first post topic in here, recently, I start to practice basic scripting on VEX,and I try to practice some example from vopsop to pointwrangle,but in this case , I get the different result in the same things,I dont know what's wrong in here,so I hope someone might might check my file and please tell why I got the different in this case, thank so much !!! practice.hipnc Quote Link to comment Share on other sites More sharing options...
gaurav Posted September 15, 2015 Share Posted September 15, 2015 Two ways in wrangle 1. append v before @side rotate(rot, rot_mul ,v@side) 2. or declare before using as variable. vector side = v@side; rotate(rot, rot_mul , @side); Cheers! Quote Link to comment Share on other sites More sharing options...
Linwood Posted September 16, 2015 Author Share Posted September 16, 2015 (edited) Thank you!! Gaurav !!! But I don't understand why I need to define "@side" is vector again ? does it not inherit the type from parents node!? If I need to do it again , why the "@up" and "@N" don't have this problem !? thank for your reply , cheers Edited September 16, 2015 by Linwood Quote Link to comment Share on other sites More sharing options...
anim Posted September 16, 2015 Share Posted September 16, 2015 you need to define the type as you need to let houdini know what type of values it will be dealing with so it can give you proper debugging info certain attributes are simply assumed to be certain types as they are commonly used in various places in houdini https://www.sidefx.com/docs/houdini14.0/vex/snippets#attributes so it's just convenience 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.