Jump to content


Photo

Obj Sequence Import


  • Please log in to reply
14 replies to this topic

#1 pigsswim

pigsswim

    Member Pig

  • Adv Members
  • PipPip
  • 27 posts

Posted 16 March 2008 - 09:37 AM

I have a really little problem, but I am sure someone here had the same kind of issue before:
I want to include a deforming object in my scene. Therefore I exported a sequence of OBJs from Maya.
Now I would like to import this sequence into Fusion 5.
Basically I could make each OBJ visible during just one frame and I am done.
But I am wodering, isn't there any tool available to automate this
process ??? I guess a Python script or a Fuse ?

#2 pigsswim

pigsswim

    Member Pig

  • Adv Members
  • PipPip
  • 27 posts

Posted 27 March 2008 - 09:04 AM

Nobody ? Is it more common to worry about 3D when people work with Discreet systems ?

#3 ShadowMaker SdR

ShadowMaker SdR

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 674 posts

Posted 27 March 2008 - 04:18 PM

I think a Fuse should be able to do it. I've seen one that loads survey data from a file to create objects out of particles, so in theory something like this should be doable. Just don't ask me how to do it, since I've only created two scripts in my life so far, that consisted mostly of copy/pasting other peoples' lines.

#4 pigsswim

pigsswim

    Member Pig

  • Adv Members
  • PipPip
  • 27 posts

Posted 31 March 2008 - 08:28 AM

Thanks anyway, I will experiment with Fuses and, well, lets see

#5 leif3d

leif3d

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 554 posts

Posted 03 May 2008 - 02:41 PM

Thanks anyway, I will experiment with Fuses and, well, lets see


Did you come up with a solution?
I'm really interested in this workflow. :)

#6 tungaunga

tungaunga

    Piglet

  • Adv Members
  • 5 posts

Posted 01 October 2008 - 12:41 AM

this is taken from a post by Sean Konrad in the fusion mailin list... I tried it a while ago on 5.1 and it worked... hope it works for you.

... potentially unstable scripting.

pathRoot = [[\\path\to\obj\]]
numDecimals = 4
objName = [[obj_name.]]
offset = 0

toImport = pathRoot..objName..string.format("%0"..tostring(numDecimals).."d",time+offset)..".obj"
if ImportFile ~= toImport then ImportFile = toImport end

This would be inserted as a FrameRenderScript. pathRoot refers to the
path of the directory you wish to grab OBJ files from, number of
decimals refers to the number of decimals in the file name, objName
refers to the name of the sequence including the frame separator
character (.,_,-, or none of the above if you're not using a separator
character) and "offset" is how you want to have the sequence offset from
the current time of the comp.

Completely untested code, by the way. I tried something similar in a
beta with disastrous results (although with the "if" check it should be
a little more stable).

#7 blade33ru

blade33ru

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 122 posts

Posted 25 September 2011 - 08:46 AM

just tried this out...seems to work ok..not real interactive feeling...kind of slow but it works...is there any other workflow maybe faster

id like to import obj sequence...some motion cap guy......drop it into a duplicate node and emit particles from said node...its working now but as i said ...slow.

...mm.. edit...on the other hand i stilll have driver problems with my gtx590....

heres project working more or less but u can see its quite slow



#8 Michael Wolf

Michael Wolf

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 173 posts

Posted 25 September 2011 - 11:09 AM

Wouldn't that work better with a base OBJ and an MDD and Pointcache to just deform the mesh?

Cheers,
Mike

#9 fusionWannabe

fusionWannabe

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 525 posts

Posted 25 September 2011 - 01:48 PM

Here's a thread on Point Cache, which is probably the better direction to go.

http://www.pigsfly.c...l=&fromsearch=1

and a loader for Point Cache

http://www.rpmanager...oader#lightwave

(there's a thread that had this link on the forum somewhere)

I used an FBX sequence for this (FBX is WAY faster than OBJ if using a sequence, but may not be an issue with PointCache), but Point Cache seems to way to go.

http://www.youtube.com/watch?v=FjjP8MW0duk

#10 blade33ru

blade33ru

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 122 posts

Posted 25 September 2011 - 05:08 PM

ohh this sounds waaaay more interesting...let me check this out..thnx

#11 blade33ru

blade33ru

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 122 posts

Posted 25 September 2011 - 06:21 PM

hey hate to sound like a dufus, but im just dropping the point cache plugin in my plugins folder and hoping it shows up in my tools list, which it doesnt. am i missing something in the installation?

#12 saovadee

saovadee

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 109 posts

Posted 27 September 2011 - 12:26 AM

Hi everyone,
I'm totally agree with Fusion Wannabe about the fbx sequences, but where can I find some script to export directly to fbx. Do Fusion can import fbx sequences?
Thank you.

#13 fusionWannabe

fusionWannabe

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 525 posts

Posted 27 September 2011 - 11:28 AM

Fusion can import them if they are named like Body001.fbx, Body002.fbx (you just import the first one using File->Import->3d scene.

Then, you set the max frame number of Fusion according to how many frames of fbx you have, and add some code in the Frame Render Script of the fbx object like:

MyPadding=3
MyFrameNum=string.format("%0"..MyPadding.."d", time)
ImportFile="Comp:\\Body"..MyFrameNum.. ".fbx"

Note: the fbx must have all the deformations, Fusion doesn't understand bones or joints.

You must also sub-divide yourself, as what you see is what you get (would be really nice if Fusion would sub-divide like it does for it's own shapes).

For a decently fast machine, this will work quite well, at least for the short clips I've tried it on.

To get your fbx sequence in the first place, kind of depends on which software you are using. I animate in 3ds max but use Lightwave to generate the deformed fbx sequence in a rather convoluted manner. Which is why I need to get the point cache working myself - as it's a pain.

But, my guess is that the FBX/point cache can't be sub-divided by Fusion, so this is going to be a bit of a pain also.

#14 saovadee

saovadee

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 109 posts

Posted 27 September 2011 - 02:29 PM

Thanx for your answer Wannabe,
Right now I'm using point cache method, coz I still cannot export fbx sequence from maya, and obj sequence is so slow.

#15 PolLitra

PolLitra

    Member Pig

  • Adv Members
  • PipPip
  • 24 posts

Posted 27 September 2011 - 04:11 PM

I don't know why you are looking for possibility to import FBX sequence if you can use a point cache plugin - believe me, I know how to make FBX sequence, but I'm so happy to use a point cache. In any case I can give you good method how to get a sequence of FBXs - simply use Fusion :) Load sequence of OBJ files and connect an FBXExporter node to it. Set up an FBX format and you'll got it. Not so easy but 10-20 minutes and you'll have what you need - fast sequential model loading. But again - point cache method even faster and much more comfortable :)))




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users