13 Replies Latest reply on Mar 1, 2012 7:13 PM by mckayk_777

    [JS] 3D Extrude Object Script

    [Jongware] Most Valuable Participant

      Brought to the idea by dreamriverdesign's question of how to script a 3D box extrude from an image, I decided to try this for any object. It was a bit of a struggle, trying to get the curved lines just right, but I think I got it (almost [*]):




      The script asks for the extrusion color and offsets, and can optionally combine the extrusion (making the black part above a single object) or leave it as numerous little objects, and/or group the extruded part together with the original.


      Download the script from http://www.jongware.com/binaries/extrude.zip

      It works on CS, I haven't been able to test on CS2, CS3, or CS4, so please report back if it doesn't work.


      [*] It's almost right, because tight curves appear 'copied' rather than extruded along the most extreme curved edge. But the math to get that right is horrible. You'll just have to live with that, correct by hand, or ... adjust the script (and in that case I'd love to hear from you!).