Dejo1974 Posted June 4, 2018 Share Posted June 4, 2018 Hello Maya user here, I'm trying to recreate triple chain ik/fk switch/match with appropriate script for matching rotations, after some digging trough documentation I did found hou.vector3 but I cannot understand how to apply it, in Maya's MEL you would do something like this: vector $NameOfTheVariable =`xform -query -rotation “NameOfTheObjectInScene”` __^____________^______________^______^_______^________________^_____________ __|____________ | ______________|______ | _______ | ______________ |_______________________________ Variable—–Name———-Command–Flag—-Flag—Name of the object in scene i.e. Joint—– type What is the equivalent syntax for this in Python in Houdini? I need rotations as vectors (in world space) so I could perform math operations on them and get/set their values… is there an equivalent of the xform command in Houdini? Quote Link to comment Share on other sites More sharing options...
jordibares Posted June 6, 2018 Share Posted June 6, 2018 vector3 is just the type of object where you store your data that you need to retrieve. a common method would be something like; hou.parm().eval() I hope this is what you are after http://www.sidefx.com/docs/houdini/hom/hou/parm_.html or as a tuple http://www.sidefx.com/docs/houdini/hom/hou/parmTuple_.html Quote Link to comment Share on other sites More sharing options...
Dejo1974 Posted June 7, 2018 Author Share Posted June 7, 2018 Well I have found these pages http://www.warshaw.co.uk/links/pythonh.html It gets me a little bit closer i.e. this syntax is as close as it can be parameter = hou.node('/path/to/node').parm('name of parm').eval() now the question is where vector3 fits in? Is it like this? parameter=vector3(hou.node ('/path/to/node').parm('name of parm').eval())? Instead of 'name of the parm' should be 'RX, RY, RZ' and I think I have also saw some .WorldSpace property/attribute somewhere on the Internet but I don't remember where... Unfortunately I cannot test it because my old apprentice license for houdini 13 has long time expired... and my sh...y graphic card cannot push the 16.5... ahhh well thanks for replying anyway... 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.