Jump to content

returning a hou.Vector3 object in an expression


beeemtee

Recommended Posts

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

Link to comment
Share on other sites

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'..

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...