Page 1 of 1

Open obj files in Fusion

PostPosted: Fri Nov 09, 2018 9:13 pm
by TYKHAN
Hi,
Is it possible to open obj files in Fusion, I know I can open abc (alembic) files in fusion, but I cant find a way to open obj files. I have a sequence of 001.obj 002.obj 003.obj to 099.obj.
If not, how to convert these files to abc format?

Thank you

Re: Open obj files in Fusion

PostPosted: Sat Nov 10, 2018 12:23 am
by Chad Capeland
Import as FBX.

Re: Open obj files in Fusion

PostPosted: Sat Nov 10, 2018 1:24 am
by Bryan Ray
To clarify a bit, use the File > Import > FBX Scene... dialogue. This will create properly configured FBX Mesh nodes, but if you try to add the node yourself, you'll just get frustrated.

Re: Open obj files in Fusion

PostPosted: Sat Nov 10, 2018 11:38 am
by TYKHAN
Thankx for reply, I dont have this obj file sequence in fbx format. does it mean I have to somway covert it to fbx animation or something else?

EDIT: thanx got it, I was doing all this in Davinci Fusion, I see it loades fine in Standalone Fusion, but its not animated?
Code: Select all
{
   Tools = ordered() {
      Plane001Mat = MtlBlinn {
         Inputs = {
            ["Diffuse.Color.Red"] = Input { Value = 0.8, },
            ["Diffuse.Color.Green"] = Input { Value = 0.8, },
            ["Diffuse.Color.Blue"] = Input { Value = 0.8, },
            ["Specular.Color.Red"] = Input { Value = 0.2, },
            ["Specular.Color.Green"] = Input { Value = 0.2, },
            ["Specular.Color.Blue"] = Input { Value = 0.2, },
            ["Specular.Exponent"] = Input { Value = 20, },
            MaterialID = Input { Value = 2, },
         },
         ViewInfo = OperatorInfo { Pos = { 55, 16.5 } },
      },
      Plane001 = SurfaceFBXMesh {
         CustomData = {
            NumMtlSlots = 1
         },
         Inputs = {
            ImportFile = Input { Value = "F:\\01_Projects\\Pakistan Flag BG\\(Footage)\\obj\\Flag_0001.obj", },
            ObjName = Input { Value = "Plane001", },
            TransformToWorld = Input { Value = 0, },
            EnableAxisConversion = Input { Value = 1, },
            EnableUnitConversion = Input { Value = 1, },
            ["ObjectID.ObjectID"] = Input { Value = 1, },
            ["MtlStdInputs.MaterialID"] = Input { Value = 1, },
            MultiMaterial = Input { Value = 1, },
            ["Materials.Plane001Mat_mat0"] = Input {
               SourceOp = "Plane001Mat",
               Source = "MaterialOutput",
               CustomData = {
                  MtlSlotIndex = 0
               },
            }
         },
         ViewInfo = OperatorInfo { Pos = { 165, 16.5 } },
      },
      Transform3D1 = Transform3D {
         Inputs = {
            SceneInput = Input {
               SourceOp = "Plane001",
               Source = "Output",
            },
         },
         ViewInfo = OperatorInfo { Pos = { 275, 16.5 } },
      }
   }
}

Re: Open obj files in Fusion

PostPosted: Sat Nov 10, 2018 2:11 pm
by michael vorberg
for OBJ sequences you need a little workaround:


https://www.steakunderwater.com/VFXPedi ... Techniques
Importing OBJ or FBX sequences
(Last Updated: Feb 18, 2009)
You want to import 3D objects on a frame-by-frame basis? Here's how it works in Fusion 5:
This assumes you have a sequence of FBX or OBJ like "MyMesh0000.obj, MyMesh0001.obj, etc. and want to have MyMesh0000 at frame 0 and MyMesh0001 at frame 1 of your composition.
Add an FBXMesh3D to your scene and load any of the meshes.
Adjust the material of the mesh in the FBXMesh's Material tab.
Once this is done to suit your needs, add an animation to the materials by right-clicking on any of the color sliders and selecting "Animate MaterialsStdInputs group".
This step is important, because else every time a new mesh is loaded (i.e. on every frame) all color values would be reset.

Now for the trick. Go to the FBXMesh's Scripting tab and in the FrameRenderScript add the lines

MyPadding=4 --set the padding of your sequence
MyFrameNum=string.format("%0"..MyPadding.."d", time) --derive the framenumber from the current time in padded format
ImportFile="Comp:\\OBJ_SEQUENCE\\MyMesh"..MyFrameNum..".obj"
Most likely you would have to tweak the path to your needs.

That's it.

Enjoy.

Re: Open obj files in Fusion

PostPosted: Mon Nov 12, 2018 11:46 am
by TYKHAN
Thank you for your help, looks like Im a step closer. :)

in the frame script, I cant change the path, I know Im doing something wrong, I get error message about the path is not correct, it always look in the C drive in fusion default folder.

My fil is on drive F:/obj/sequences/Flag.0001.obj