3D to 2D ScreenSpace .1b
Posted: May 6th, 2012, 8:18 pm
Hello all,
Posting my first script out there. Works pretty simply, you select a 3d layer, then click one of the two buttons ('Link' or 'Bake') and the net result is an animated 2D null at the layers screen-space. More info and a download link at http://vidjuheffex.com/scripts/
That said, I would love for some people to look at the code. I have been learning JavaScript only for a few weeks now. For example right now I have Link and Bake executing two separate functions when bake is the same with the exception of one additional step. Not sure what the best way to pass a Boolean into a function would be (or if that is even the right approach). Also, I cobbled many parts of this from scripts as I was learning (THANK YOU ALL) and I noticed that none of the checks in the code seem to work, those that for example tell you to please have a comp active etc. Are these just way out of whack or am I missing something simple here. Anyway I look forward to updating this script and making many more.
UPDATE: version 0.2b is up, prompts work properly! All of them! (thanks Paul!)
Posting my first script out there. Works pretty simply, you select a 3d layer, then click one of the two buttons ('Link' or 'Bake') and the net result is an animated 2D null at the layers screen-space. More info and a download link at http://vidjuheffex.com/scripts/
That said, I would love for some people to look at the code. I have been learning JavaScript only for a few weeks now. For example right now I have Link and Bake executing two separate functions when bake is the same with the exception of one additional step. Not sure what the best way to pass a Boolean into a function would be (or if that is even the right approach). Also, I cobbled many parts of this from scripts as I was learning (THANK YOU ALL) and I noticed that none of the checks in the code seem to work, those that for example tell you to please have a comp active etc. Are these just way out of whack or am I missing something simple here. Anyway I look forward to updating this script and making many more.
UPDATE: version 0.2b is up, prompts work properly! All of them! (thanks Paul!)