Mongan Posted February 24, 2009 Share Posted February 24, 2009 Howdy, I've tried everything I can think of to get Quicktime to open with no luck. Help please. I have mathematical CAD models which I generate from parametric equations using Vectorscript. That part is fine. I wish to iterate the process and send a frame by frame to a Qt movie file. I can't find any example documentation. Might be a scope issue. The script compiles just fine but doesn't make a movie. What am I missing? Both variables Q and R are returning a value of 0 in the message pane. The object rotates as planned on the Vectorworks screen. I am running VW 2008 on an Apple G5. Cheers, Mike PROCEDURE LisRotate; {$DEBUG} {Rotate an Object Set3DRot} CONST MaxIndex = 12; {# iterations } VAR twisteeH: HANDLE; {object to be rotated} irot, jrot, krot: REAL; a, Q, R, S: INTEGER; Rot:STRING; FUNCTION QTInitialize :INTEGER; BEGIN END; {Q} FUNCTION QTOpenMovieFile (Rot:STRING) :INTEGER; BEGIN END; {R} BEGIN {A. start of procedure} Q:= QTInitialize; R:= QTOpenMovieFile (Rot); twisteeH := LActLayer; irot := 1; {degrees axes to be rotated} jrot :=2; krot := 3; a := 1; WHILE a < MaxIndex DO BEGIN {B. While} Set3Drot (twisteeH, irot, jrot, krot, 0,0,0); ResetBBox(twisteeH); Projection(0,0,9.76,-4.88,4.88,4.88,-4.88); SetView(#-45.0d,#-35.26438968275d,#-30.0d,0,0,0); RedrawAll; QTWriteFrame ®; { Add frame to movie} a:= a+1; {iterate} END; {B. While} Message ('R value is:' , R:2, 'Q value is:' , Q:2); QTCloseMovieFile ®; END; {A.} Run(LisRotate); Quote Link to comment
Vectorworks, Inc Employee klinzey Posted February 24, 2009 Vectorworks, Inc Employee Share Posted February 24, 2009 For starters get rid of the functions QTInitialize and QTOpenMovieFile by creating them you are over riding the built-in functions for those calls. Once you do that it looks like it should work, or at least have a chance of working. Kevin Quote Link to comment
Mongan Posted March 2, 2009 Author Share Posted March 2, 2009 Hi Kevin, thanks, that worked. Had to enclose the movie string name in single quotes in the calling routine. One more little question, the filepath is an automatic. The movie is placed in the folder: /Users/me/Library/application support/ Vectorworks/ 2008. Had to use finder to locate it. I've tried creating different file paths to get the movie to be placed on the desktop folder. No luck. Does Vectorworks recognize the Apple / type of path designation or does it want something else? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.