Rikrok Posted February 8, 2018 Share Posted February 8, 2018 I'm trying to write out multiple variations of the same object as fbx's (I have to use fbx), the object is set to change every frame. Unfortunately when you set a frame range on the the Filmbox FBX ROP you don't get multiple fbx's, you just get one with a point cache. I put a script on the object to change the start and end frame of the ROP to the current frame (which works), followed by hou.parm('/out/filmboxfbx1/execute').pressButton() Which when pressing play writes out a bunch of fbx's but unfortunately they're all empty; the script gives an infinite recursion in evaluation error. I then tried making a tool that runs a script for n in range (1, 101): hou.setFrame(n) hou.parm('/out/filmboxfbx1/execute').pressButton() This only writes out 1 frame. I even tried using threading and sleep incase it was because it was executing the render button too quickly, no dice. Does anyone know how I can achieve this? Quote Link to comment Share on other sites More sharing options...
Atom Posted February 9, 2018 Share Posted February 9, 2018 Have you tried the basic frame number in the Output file name? $HIP/out_$F4.fbx Quote Link to comment Share on other sites More sharing options...
Rikrok Posted February 9, 2018 Author Share Posted February 9, 2018 57 minutes ago, Atom said: Have you tried the basic frame number in the Output file name? $HIP/out_$F4.fbx That's the first thing I did Quote Link to comment Share on other sites More sharing options...
Atom Posted February 9, 2018 Share Posted February 9, 2018 Maybe you could try a post-processing rename on the file that is written out? At this link is some code where I re-write an OBJ file right after it is written. A python rename might do the trick? Quote Link to comment Share on other sites More sharing options...
Rikrok Posted February 9, 2018 Author Share Posted February 9, 2018 The issue is with the Filmbox ROP - if you tell it to write more than one frame it will under no circumstances write out multiple fbx's; it assumes you want one fbx with a cache. Therefore I need to set it to write one frame, render, change the frame, render, etc. 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.