rcwork Posted February 24, 2015 Share Posted February 24, 2015 (edited) Hi. How can i grab direction vector from Alembic camera? In build-in camera i can do this using Camera "Rotation" values. But alembic camera has no any transform values - fields are empty.. How can i grab alembic camera direction? Thanks! Edited February 24, 2015 by rcwork Quote Link to comment Share on other sites More sharing options...
crunch Posted February 24, 2015 Share Posted February 24, 2015 Hi. How can i grab direction vector from Alembic camera? In build-in camera i can do this using Camera "Rotation" values. But alembic camera has no any transform values - fields are empty.. How can i grab alembic camera direction? Thanks! You can either import the camera in an Alembic archive and use the objlookat() expression function, or you might look at the - Alembic Python extensions (getWorldXform). Quote Link to comment Share on other sites More sharing options...
rcwork Posted February 25, 2015 Author Share Posted February 25, 2015 You can either import the camera in an Alembic archive and use the objlookat() expression function, or you might look at the - Alembic Python extensions (getWorldXform). Thanks, crunch. This would be interesting, and good reason for starting to learn python for Houdini. This need more and more. as i can see. Quote Link to comment Share on other sites More sharing options...
Jason Posted February 25, 2015 Share Posted February 25, 2015 I'm not at my work machine now, but perhaps you could: hou.Vector3(0,0,-1) * hou.node("/obj/alembicarchive/theCamera").worldTransform() Quote Link to comment Share on other sites More sharing options...
rcwork Posted March 11, 2015 Author Share Posted March 11, 2015 Guys, thanks you all for replies. A lot of time i avoided to learn python. Always used MEL for Maya, hscript for Houdini.I have started learn python api or houdini and maya, four days ago. Now i can use python scripts. Thanks Jason ! 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.