Jump to content

houdini camera to aftereffects


Recommended Posts

hm .... the export out of houdini somehow does not work .... has anyone tried it with H10 and windows 7 64bit..

as i ve absolutly no idea of scripting further help would be great!

thx

error:

fp.close()

hou.setFrame(fstart)

>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> ... ... ... ... >>> >>> >>> >>> >>> ... ... ... ... >>> ... ... File "<console>", line 3

fp = open(fname,'w')

^

SyntaxError: invalid syntax

>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... >>> ... ... ... ... ... ... ... ... ... ... ... File "<console>", line 12

for x in objCamera:

^

SyntaxError: invalid syntax

>>> File "<console>", line 1

fp.write('%s'%x)

^

IndentationError: unexpected indent

>>> ... ... File "<console>", line 3

for x in objNull:

^

SyntaxError: invalid syntax

>>> File "<console>", line 1

fp.write('%s'%x)

^

IndentationError: unexpected indent

>>> >>> >>> ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... File "<console>", line 51

fp.close()

^

SyntaxError: invalid syntax

>>> >>>

Edited by hatrick
Link to comment
Share on other sites

here few pictures how i do it...

can You describe how You do it?

can You post simple scene which cause this errors?

The file from an example causes errors too?

You opened this script in the text editor for editing?

Because python is very critical to formatting

The superfluous "space" or "new line" in a wrong place can lead to an errors like:

>>>Indentationerror: unexpected indent

post-136-127590414501_thumb.jpg

post-136-127590415191_thumb.jpg

post-136-127590417796_thumb.jpg

post-136-127590418165_thumb.jpg

Link to comment
Share on other sites

thx andrew for your time .... first i copyed and pasted the script into the python shell which brought me to the object selection function but gave an error like stated above ... now by executing the file over a path in python everthing works fine ... sorry i should have tested this before posting....

greets

Lucas

Link to comment
Share on other sites

  • 5 years later...

this script works fine for me in 1280x720 resolution but when doing full HD 1920x1080 scenes, the rendered image and the 3d layers in AE don't match up quiet well. can you guess which settings need to be changed, like zoom FOV etc?

 

Edit: fixed it...... the issue was caused bcz cameras in houdini became ortho.......... something by some mistake by me

Edited by yesyes
Link to comment
Share on other sites

Andrew,

 

I just tried your latest revision and the camera animation is not generated. However, I do get animation on my objects (which are not animated). They all have the same exact keyframe, of course.

 

Is camera animation supported at this time?

Link to comment
Share on other sites

Downloaded...tested...works as expected.
The only reason why this might happen is when you accidentally
do not select camera.
In this case script will create default camera named "Camera1" without animation.
Not animated objects will have the keys because the script assumes that
the object may be animated using expressions or parenting.

Maybe this is some kind of "Houdini Indie" restriction...have no idea:(
 

Link to comment
Share on other sites

  • 2 months later...

made some time ago a ROP After Effects Exporter based by the work of Andrew. It was for me more a learning project so it has still some unresolved bugs  :mellow:

the target was to make a Public Asset but i didn't had time to resolve the bugs and cleanup. since nearly 1 year there is no update it's better to release it, if somebody wan't to resolve this project go a head... :-) 

AEexporter.zip

Edited by Mandrake0
Link to comment
Share on other sites

i think there are many after effects users who do this for themselves and don't talk about it much. if we can share our experiences, it can result in an asset which can be production ready with many options.

as for me, I edited the script by replacing null with solid layer code, so it creates 100*100 solid in AE with scaling according to houdini which results in simple boxes exported to native after effects compatible 3D objects.

Link to comment
Share on other sites

hello

 

perhaps you have found the way, but I thought this might be useful.

 

there is a free plugin  FBX to AE  http://www.timecore.org/fbx-to-ae/

first you need to bake animation as always to work in AE. 

 

anim, has shown the way how we can bake animation to each frame.

http://forums.odforce.net/topic/11079-baking-keyframes/

 

I used it and It worked great.

Edited by haaranoos
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...