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
GameDev & TechArt
MatanH's Avatar
Matan Halberstadt
Game Developer & Tech Artist
Tel-Aviv, Israel
Join Date: Oct 2002
Posts: 387
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: 222
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.
Shawn Olson
Autodesk Expert Elite
3ds Max Charter Member

Developer of:
Wall Worm Tools for the Source Game Engine
CorVex Level Design Plugin
Old 05-08-2013, 02:08 PM   #18
CGTalk Moderation
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
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:44 AM.

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