hom equivalent of viewwrite

   4519   6   3
User Avatar
Member
380 posts
Joined: July 2005
Offline
anyone know? i've been poking around hou.SceneViewer
but cant find a way to write out whats in the viewport.

does the flipbook button in the viewport still use viewwrite?
User Avatar
Member
1908 posts
Joined: Nov. 2006
Online
Unfortunately there's no HOM command to do it. The best thing you can do is wrap viewwrite in a hou.hscript().
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
380 posts
Joined: July 2005
Offline
viewls returns things like this:
Build.pane2.world.persp1

i can get the desktop name, pane name, and
viewport name in hom, but what is the ‘world’
in this string.

im assuming that viewwrite needs this to
be fully resolved this way. and while i could
use viewls, im wondering how to get this
from the pane in hom.
User Avatar
Member
380 posts
Joined: July 2005
Offline
I guess if its a hou.GeometryViewport it's always going to be ‘world’

Each line of the list of viewers is in the format “<viewername>
<type>”|where <viewername> is in the form “<desk>.<pane>.<type>”
<type> is “world”|“texture”|or “particle”.
User Avatar
Member
789 posts
Joined: April 2020
Offline
Not of any help, but I guess you came across this in the geometryViewport:

saveFlipbook(self, file_name, only_at_keys=False, append_to_sequence=False, frame_range=None, frame_increment=Non, res=None, audio_file_name=None, audio_sync_time=None, spool_dir=None, object_mask='*', initialize_sim_nodes=False)
This feature is not yet implemented

(File_name can be ip or md.)

I assume this is to be the hom equivalent of viewwrite.I have been hoping for a while now sidefx would implement this, I guess the more voices the bigger the chance.

Cheers,
Koen
User Avatar
Member
75 posts
Joined:
Offline
Until this is implemented in hom, how would one go about pushing this command into hou.hscript()?

every time I try to run it with an argument of the file path or even ip

it segfaults houdini.

anybody tried this successfully?

thx

-johnc
User Avatar
Member
99 posts
Joined: July 2007
Offline
hi, this might be of use

Attachments:
owl_flipbook_f0_v0_0_8.otl (66.9 KB)

  • Quick Links