gemini Posted April 12, 2016 Share Posted April 12, 2016 Hi Everyone, Does anyone can help where to find doc or Can it be solved anyhow at all ? THANKS, G Quote Link to comment Share on other sites More sharing options...
anim Posted April 12, 2016 Share Posted April 12, 2016 http://www.sidefx.com/docs/houdini15.0/commands/viewwrite From python you can run it through hou.hscript() Quote Link to comment Share on other sites More sharing options...
f1480187 Posted April 12, 2016 Share Posted April 12, 2016 Before all, OpenGL ROP. You may find it more convenient to work with this node using Python. hou.GeometryViewport.saveFlipbook() still not in H15, but you can invoke HScript command viewwrite from Python. Example: import hou import toolutils def viewname(viewer): viewname = { 'desktop' : viewer.pane().desktop().name(), 'pane' : viewer.name(), 'type' :'world', 'viewport': viewer.curViewport().name() } return '{desktop}.{pane}.{type}.{viewport}'.format(**viewname) def viewwrite(options='', outpath='ip'): current_view = viewname(toolutils.sceneViewer()) hou.hscript('viewwrite {} {} {}'.format(options, current_view, outpath)) viewwrite('-q 4 -f 1 10', "$HIP/flipbook/'$F3'.jpg") Quote Link to comment Share on other sites More sharing options...
gemini Posted April 13, 2016 Author Share Posted April 13, 2016 Thanks for the detailed answers!! Keep up good work. I love Houdini ! G Quote Link to comment Share on other sites More sharing options...
gemini Posted April 22, 2016 Author Share Posted April 22, 2016 (edited) On 4/12/2016 at 4:46 PM, f1480187 said: Hi, Colud You tell why it's not working reading the files back. THX G import hou import toolutils hou.hscript( "loadseq -r a:/Projects/HoudiniTests/Python/flipbook/'$F3'.jpg") print 1 Edited April 22, 2016 by gemini Sorry I unfortunately I edited your code Quote Link to comment Share on other sites More sharing options...
gemini Posted April 22, 2016 Author Share Posted April 22, 2016 (edited) Hi, Colud You tell why this code is not working for reading the captures files back. THX G -- code -- import hou import toolutils hou.hscript( "loadseq -r a:/Projects/HoudiniTests/Python/flipbook/'$F3'.jpg") print 1 Edited April 22, 2016 by gemini Quote Link to comment Share on other sites More sharing options...
f1480187 Posted April 22, 2016 Share Posted April 22, 2016 (edited) Looks like it's MPlay-specific. Houdini doesn't know about loadseq command. Forum search says that you are first living human trying to use this command. hou.Mplay functionality still not implemented at all, like flipbook generaition classes, so, you are out of luck even with HScript, probably. From Houdini Textport: / -> help loadseq No installed command matches loadseq From MPlay Textport: mplay -> help loadseq loadseq Loads a sequence of files into mplay. But it is extremely easy to directly call MPlay as a program using Python: import subprocess import hou ip = hou.expandString('$HB/mplay') seq = hou.expandString('$HIP/flipbook/*.jpg') subprocess.Popen([ip, seq]) Edited April 23, 2016 by f1480187 Quote Link to comment Share on other sites More sharing options...
gemini Posted April 26, 2016 Author Share Posted April 26, 2016 (edited) Thanks, It is easy, but you know any easy method to bring mplay app to front? Thanks in advance! G Edited April 26, 2016 by gemini 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.