3dsmax 2013 - readchars

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  03 March 2013
3dsmax 2013 - readchars

hi together,

we using an setup for organizing our scripts from our server to the local machines and putting them on the menu bar..(edited aeron setup) so far all is working fine but we llike to switch to 2013/14 this year and the scirpt seems to have a problem with theese setup. we found that the error seems comming from this part of the script:

scriptFile = "test.ms"
scriptFile = openFile scriptFile mode:"rt"

macroToolTip = (readExpr scriptFile)
macroButtonText = (readExpr scriptFile)
seek scriptFile #eof
maxlen=filepos scriptFile
seek scriptFile 0
skipToString scriptFile "--start macro\n"
scriptContent = readChars scriptFile maxlen errorAtEOF:false
print scriptContent
close scriptFile

and over some print testings we found that in max 2013 there seems that the readchars command is not working correctly. in max2012 the print command shows the whole script we opened but in 2013 there is nothing inside.

have anyone an idea what is going on here?



Jens Hedrich
CEO | 3deutig
animation | visual effects

jens@3deutig.com www.3deutig.com

  03 March 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 08:55 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.