Animated Rotation of Model


RE: Animated Rotation of Model
#5
(2016-05-15, 5:31)Travis Cobbs Wrote: I'm not batch file expert, and I haven't tested it with filenames with spaces (although it might work), nor have I tested it with full paths. Specify an LDraw file (or LDraw files) as the parameters for the program. It will generate PNG files from 0 to 359. Note that this is set up for a 64-bit LDView. Change the second line to the correct full path to your LDView.

This is the code that I put in:

Code:
@echo off
SET LDVIEW=C:\Program Files (x86)\LDraw\LDView\LDView.exe
FOR %%F IN (%*) DO (
  FOR /L %%L IN (0,22.5,360) DO (
       ECHO %%~nF-%%L.png
      "%LDVIEW%" -SaveSnapshot="%%~nF-%%L.png" -SaveZoomToFit=0 -ZoomToFit=0 -SaveSeries=1 -SaveWidth=1024 -SaveHeight=1024 -DefaultLatLong=30,%%L "%%F"
   )
)

The code runs when I open a file with the batch file, but the rendered images are blank. Is the code wrong or is something else going on?
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Animated Rotation of Model - by Tanner S. - 2016-05-14, 1:59
RE: Animated Rotation of Model - by Tanner S. - 2016-05-19, 19:39
RE: Animated Rotation of Model - by Tanner S. - 2016-05-17, 0:43
RE: Animated Rotation of Model - by Tanner S. - 2016-05-18, 20:48
RE: Animated Rotation of Model - by Tanner S. - 2016-05-19, 19:54

Forum Jump:


Users browsing this thread: 1 Guest(s)