beeemtee Posted March 18, 2009 Share Posted March 18, 2009 hi, i'm trying switch to python expressions. if i try to return a Vector3 object to a parameter which expects a vector (POP velocity), like: from hou import Vector3 return Vector3(1,1,1) i got an error, something like: ...extra tokens detected... what do I miss here? thanks bmt Quote Link to comment Share on other sites More sharing options...
edward Posted March 18, 2009 Share Posted March 18, 2009 I'm not sure python expressions properly support the vector form of parameters. I'd submit a bug with .hip file on sidefx.com Quote Link to comment Share on other sites More sharing options...
beeemtee Posted March 18, 2009 Author Share Posted March 18, 2009 thanks, here is a minimalistic reproduction of the problem: py_vector_expression_bug.hip Quote Link to comment Share on other sites More sharing options...
mic Posted March 18, 2009 Share Posted March 18, 2009 thanks, here is a minimalistic reproduction of the problem:py_vector_expression_bug.hip hmm, yes, that's not working but when i put 'from hou import Vector3' to python source shell and change the type of velocity from vector to component and set it to: Vector3(1., 2., 3.)[0], Vector3(1., 2., 3.)[1], Vector3(1., 2., 3.)[2] everything works. so, it is really possible that this is smth like 'not-implemented'.. Quote Link to comment Share on other sites More sharing options...
beeemtee Posted March 18, 2009 Author Share Posted March 18, 2009 yeah, I know that, but then you have to manage three expression instead of one, which is really error prone and not nice. Quote Link to comment Share on other sites More sharing options...
edward Posted March 19, 2009 Share Posted March 19, 2009 thanks, here is a minimalistic reproduction of the problem: Er, mean go to sidefx.com and choose Support > Submit bugs & RFEs. Quote Link to comment Share on other sites More sharing options...
beeemtee Posted March 19, 2009 Author Share Posted March 19, 2009 Er, mean go to sidefx.com and choose Support > Submit bugs & RFEs. ok i got it.. Quote Link to comment Share on other sites More sharing options...
Jason Posted March 19, 2009 Share Posted March 19, 2009 ok i got it.. It is a very nice idea to have this; please RFE it:) Quote Link to comment Share on other sites More sharing options...
cellchuk Posted March 26, 2009 Share Posted March 26, 2009 I was going to post the same question. just couldn't find the way of returning Vector3 in a single exp. :S cheers 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.