3dbeing Posted November 29, 2011 Share Posted November 29, 2011 I would think this would be under hou.ui or SceneViewer but I can't find anything in either python or hscript to lock the viewpot to the current camera... Anyone know of a way to script this? Quote Link to comment Share on other sites More sharing options...
ehsan parizi Posted November 29, 2011 Share Posted November 29, 2011 I assume by locking the current cam to the viewport you don't mean clicking on the "lock camera/light to view" button on the right bar of viewport. right? Quote Link to comment Share on other sites More sharing options...
3dbeing Posted November 30, 2011 Author Share Posted November 30, 2011 yup, but i want to script it as part of a function... Believe me I wish i didn't have to, but it seems i do.... =\ Quote Link to comment Share on other sites More sharing options...
Green-Man Posted December 2, 2011 Share Posted December 2, 2011 import toolutils viewer = toolutils.sceneViewer() current = viewer.curViewport() current.setCamera(hou.node("/obj/cam1")) Quote Link to comment Share on other sites More sharing options...
3dbeing Posted December 7, 2011 Author Share Posted December 7, 2011 import toolutils viewer = toolutils.sceneViewer() current = viewer.curViewport() current.setCamera(hou.node("/obj/cam1")) This will set the camear but does not lock the camera... 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.