3d Rendering

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

bchapman

3d Rendering

Post by bchapman »

So I'm using the new 3d rendering capabilities to do some product shots in Photoshop. I'm trying to script a process to batch map 2d textures onto 3d geometry using the 3d tools in photoshop. The problem I'm facing is that there's no way to script the rendering of the object well in photoshop. I've used the scriptlistener to get this....

Code: Select all// Render the new texture on the model
var idresumeFinalthreeDRender = stringIDToTypeID( "resumeFinal3DRender" );
    var desc208 = new ActionDescriptor();
executeAction( idresumeFinalthreeDRender, desc208, DialogModes.NO );


But, this render goes on forever. Even on an image as small as 512x512, it takes way too long to render at if you just let it run it's course. However, by around the 3rd pass, it looks fine for what I need. Has anyone played with anything like this?

Would it be possible to add a timeout for how long I give it to render? Like only give it 60 seconds to render, and then go with the render that it has completed by that point? Then it would just continue with the rest of the script.

Thoughts?

Thanks,
Brennan