sibarrick Posted May 17, 2009 Share Posted May 17, 2009 (edited) Anyone know how to qualify a tuple of 3 floats as a vector when adding attributes in a python sop? If I do this default = hou.Vector3(1.0, 0.0, 0.0) geo.addAttrib(hou.attribType.Point, "N", default) Then I just get a 3 floats, as expected, and houdini won't display it as a proper point normal Edited May 18, 2009 by sibarrick Quote Link to comment Share on other sites More sharing options...
graham Posted May 17, 2009 Share Posted May 17, 2009 You have to make sure the fourth argument to addAttrib(), transform_as_normal is set to true. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted May 17, 2009 Author Share Posted May 17, 2009 and is there a way to tell if an existing attribute is a vector rather than just 3 floats? Quote Link to comment Share on other sites More sharing options...
graham Posted May 17, 2009 Share Posted May 17, 2009 hou.Attrib.isTransformedAsNormal() Quote Link to comment Share on other sites More sharing options...
sibarrick Posted May 18, 2009 Author Share Posted May 18, 2009 Doh! I suppose I could have found that myself.... 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.