CGTalk > Software > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »
Thread Tools Search this Thread Display Modes
Old 12-24-2012, 12:32 PM   #16
Character TD
MatanH's Avatar
Matan Halberstadt
Game Developer
Tel-Aviv, Israel
Join Date: Oct 2002
Posts: 380
Originally Posted by lo
I'm not sure what you mean. I just meant you could do this:

local pat = "(*" while not ms.eos() and not matchPattern token pattern:pat do token = ms.readToken()

Like you did with the other symbols.

got you now,
fixed it to something even simpler:
while not ms.eos() and not token[1] == p1 do

Thanks again.
Old 05-08-2013, 02:08 PM   #17
Shawn Olson
wallworm's Avatar
Shawn Olson
Wall Worm
Columbus, USA
Join Date: Jul 2011
Posts: 219
I was about to write this very thing... thank you for saving me the time!

Here is a slight improvement:

fn readBlock2 ms p1:"(" p2:")" = ( ... )

This way the user can set the start and end tokens like in the MemStream.readBlock() method.
Old 05-08-2013, 02:08 PM   #18
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,479
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:27 PM.

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