AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sun Dec 21, 2014 9:56 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: 3D position to 2D screen space [XSI to AFX]
PostPosted: Tue Jul 12, 2005 12:37 pm 
Offline

Joined: Wed Jul 07, 2004 2:30 pm
Posts: 321
Location: Charlotte, NC
I have just finished a new script that exports 2D position data from 3D objects in XSI. The data is then read by a script in After Effects and animates nulls or a corner pin effect. Let me know if anyone finds any bugs. The AE part is much better put together than the XSI part, but it seems to work.

http://www.armoredsquirrel.com/scripts/BN_XSI_to_AFX.zip

Detailed Usage

The script finds the position of an object in 2d 'screen' space. This is useful for tracking objects in compositing apps, namely Adobe After Effects. This is designed to be used with XSI and After Effects, although, you could most likely write a script to replace either one and use a different app for 3D or compositing. It is mainly set up for NTSC, most of the comp settings come from what you are using in XSI though. It would not be hard to sub out the few other variables to make it compatible with PAL.

-There are two scripts, a .vbs for XSI and a .jsx for AFX.
-Inside XSI select any number of objects you wish to track and run the script. If you would like After Effects to perform a 4 point corner pin track, select the 4 points in clockwise order starting from the Upper Left. (UL,UR,LR,LL)
-It will prompt you to save a txt file that will contain the exported data.
-In After Effects, run the jsx script. It will ask you to find the data file that XSI exported.
-If the file contains 4 tracking points, the script will ask if you would like to apply a corner pin effect. If you choose this option, it creates a comp based on settings from XSI and animates a corner pin effect using the data.
-If there are not 4 points or you choose not to use corner pin, it will create a null with animated postion for each tracking point that you had selected in XSI.
-In AE, you can either select the comp you would like everything to go in before running the script, or select nothing to have the script create a new comp based on settings from the data file.

_________________
Byron Nash
CG/VFX Generalist
http://www.editatjoes.com
http://www.armoredsquirrel.com


Last edited by byronnash on Tue Nov 21, 2006 12:19 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 14, 2005 11:59 am 
Offline

Joined: Wed Jul 07, 2004 2:30 pm
Posts: 321
Location: Charlotte, NC
I have updated the script with some bug fixes and workflow enhancements.

You can now apply a corner pin to an existing AE layer by selecting it before running the script in AE. It will ask you if you want the corner pin on the layer.

All the comp settings come from XSI, so it 'should' support PAL or anything you have set up in XSI

_________________
Byron Nash
CG/VFX Generalist
http://www.editatjoes.com
http://www.armoredsquirrel.com


Top
 Profile  
 
 Post subject: Re: 3D position to 2D screen space [XSI to AFX]
PostPosted: Wed Jun 11, 2008 5:32 am 
Offline

Joined: Tue Jun 10, 2008 1:41 pm
Posts: 5
Wow. very cool script. i will try it today.


Top
 Profile  
 
 Post subject: Re: 3D position to 2D screen space [XSI to AFX]
PostPosted: Fri Jul 02, 2010 9:19 am 
Offline

Joined: Wed Jun 30, 2010 2:57 pm
Posts: 1
hi I have a problem with importing trackers to the AFX composition. script for afx I added to the folder: ScriptUI Panels so I can run this and choose file ..txt with parameters XY, but after that I see communique e.g. "null is not a object" or, "AF error: unable to call 'setValueAtTime' because of parameter 2 value "237,84" element 1 in the array is not a valid float".
Sometimes it is a problem with 61 or 161 line of code jvscript. I don't know what to do, please can you help me solve this problem...
Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group