Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / reading scripts from boujou 5 problem
  RSS 2.0 ATOM  

reading scripts from boujou 5 problem
Rate this thread
 
60417
 
Permlink of this thread  
avatar
  • Total Posts: 59
  • Joined: 03 September 2006 05:07 PM

I am using max 2009 and boujou 5 match move software and am new user.
I export camera from boujou as an max script .ms as required. Then i go to max and run script. It always gives me this error no matter what themovie.avi is named or what I export from boujou
Anyone know how to fix the problem or had it also?
error below

--Syntax error: at ), expected <factor>
--In line: filename = “C:/themovie.avi")

thanks

first part of the script boujou generated is shown below:

-- boujou export: 3D Studio Max - Max Script
-- Copyright (c) 2009, Vicon Motion Systems
-- boujou Version: 5.0.0 47534
-- Creation date : Tue Sep 27 19:19:11 2011
-- The image sequence file name was C:/themovie.avi
-- boujou frame 0 is image sequence file 0
-- boujou frame 2567 is image sequence file 2567
-- One boujou frame for every image sequence frame
-- Exporting camera data for boujou frames 0 to 2567
-- First boujou frame indexed to animation frame 1

animationRange = interval 1f 2568f

filename = “C:/Fraps/orbiter 2011-09-26 13-15-15-06.avi")
if ( doesfileexist filename ) then
(
bitmap = openBitMap( filename )
bitmap.numframes = 2567
setAsBackground bitmap
setBkgImageAnimate true
setBkgImageAspect #output
setBkgFrameRange [0, 2567, 1]
setBkgStartTime 2
setBkgSyncFrame 0
)

setRendApertureWidth 14.7574
renderHeight = 720
renderwidth = 1280
renderPixelAspect = 1.00004
frameRate = 25

animationrange = interval 1 2568

point cross:off centermarker:on pos:[0.0, 0.0, 0.0] name:"boujou_data"

animate on (
c0 = freecamera name:"Camera_1"
c0.nearclip = 0.0
c0.parent = $boujou_data
at time 1f c0.rotation = quat -7.4609e-018 2.0041e-017 8.3719e-017 1
at time 1f c0.position = [-0.0466119,0.0206693,1.44652]



Replies: 0
avatar
  • stig atle
  • Posted: 27 September 2011 06:25 PM
  • Location: Kristiansand - Norway
  • Total Posts: 193
  • Joined: 20 December 2006 03:43 AM
  • Permlink of this post

try this:
change:

filename "C:/Fraps/orbiter 2011-09-26 13-15-15-06.avi")

to:

filename = ("C:/Fraps/orbiter 2011-09-26 13-15-15-06.avi")

(add the ‘(’ before the path).



http://www.stigatle.net

Replies: 0