Jump to content

FBXoutput


Kalou

Recommended Posts

On 2019/11/25 at 11:59 AM, LaidlawFX said:

This has been a long time design "feature" of the fbx exporter in houdini. To get around it you can use a foreach loop in sops, a python for loop, or tops with each task split separately.

Sorry,I don't kown how to use foreach loop to output fbx file in sop.

Can you share me a example file for that?

Link to comment
Share on other sites

The easiest way is to use a python sop in a forloop,
causing the renderbutton to be pressed.
note that your node may have to be "unlocked", so having it inside a locked hda will require some additional work

something along the lines of:

#python code:
hou.parm("../ropnet1/fbxnode/execute).pressButton()

Link to comment
Share on other sites

Here is a file with three ways to do it in sops, tops, and in python. There are a lot more ways to do it too as Twan has mentioned to game the system too. There are RFE's to have this option too added at some point... FBX upgrades are not common. They actually just made the code open source for the FBX rop.

fbx_sequence.hip

  • Like 1
Link to comment
Share on other sites

I pretty much exclusively do this with python as well but you can also manipulate the timeline to split things up into different files, if you dont want to dip into python

 

example case you have a model with a bunch of pieces you want to export as individual .fbx files, put a connectivity sop set to primitives, and in a primitive wrangle -

 

setdetailattrib(0, 'frame_max', i@class, 'max');

if(@class != @Frame-1) {
    removeprim(0, @primnum, 1);
}

 

Output to a filecache, fbx w/e, set to Save Frame Range, and put expression in the end frame parameter- 

detail(0, 'frame_max', 0)

 

miller time

 

Edited by Neon Junkyard
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...