Jump to content

Search the Community

Showing results for tags 'viewporttocamera'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Lounge/General chat
    • Education
    • Jobs
    • Marketplace
  • Houdini
    • General Houdini Questions
    • Effects
    • Modeling
    • Animation & Rigging
    • Lighting & Rendering
    • Compositing
    • Games
    • Tools (HDA's etc.)
  • Coders Corner
    • HDK : Houdini Development Kit
    • Scripting
    • Shaders
  • Art and Challenges
    • Finished Work
    • Work in Progress
    • VFX Challenge
    • Effects Challenge Archive
  • Systems and Other Applications
    • Other 3d Packages
    • Operating Systems
    • Hardware
    • Pipeline
  • od|force
    • Feedback, Suggestions, Bugs

Found 1 result

  1. scene = hou.ui.curDesktop().paneTabOfType(hou.paneTabType.SceneViewer) viewport = scene.curViewport() frame = hou.frame() # cameras = list of scene cameras i = 0 for camera in cameras: viewport.setCamera(camera) flip_options = scene.flipbookSettings().stash() flip_options.frameRange((frame, frame)) #flip_options.beautyPassOnly(True) flip_options.cropOutMaskOverlay(True) path_name = hou.hipFile.name().split(".")[0] if not os.path.exists(path_name): os.makedirs(path_name) flip_options.output(path_name+"/opening_"+str(i)+".png") scene.flipbook(viewport, flip_options) i+=1 Hello all, I have a list of cameras. The goal is to view the scene through the cameras, take a screenshot and save them. I expect to get results like this, where I am looking through a specific camera, saved. However, though the UI shows us to be looking through the correct viewport, we only ever save out the view from the last ever camera: Any advice would be greatly appreciated! I have been unable to find a similar problem online. Thank You
×