Jump to content
Sign in to follow this  
hatrick

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

Share this post


Link to post
Share on other sites

i have tried it under windows7 x64 h10.625

it works ok

can you please give me a few hints how you did it, as i ve absolute no idea of working with python in houdini ....

Edited by hatrick

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Here slightly changed version....
it uses "orientation" channel in AE to fix motion blur "problem"
when value crosses 360 degree
 

HouToAE.zip

Share this post


Link to post
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?

Share this post


Link to post
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:(
 

Share this post


Link to post
Share on other sites

you need to select objects that you want to export animation for, including cameras

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

My only target was to learn Python and how you can make a HDA , i also haven't got a Aftereffects near me so i can't test it. 

Share this post


Link to post
Share on other sites

the file that you posted above works in after effects cs5, i have tested that rop, you just have to install that digital asset first.

Share this post


Link to post
Share on other sites

sorry i was not precise enough when i have done it i had after effects but not now :-) and i know that there are some small bugs that aren't resolved.   

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×