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
MatanH
Character TD
 
MatanH's Avatar
portfolio
Matan Halberstadt
Head of Rigging dpt.
snowball studios
Tel-Aviv, Israel
 
Join Date: Oct 2002
Posts: 379
Quote:
Originally Posted by lo
I'm not sure what you mean. I just meant you could do this:

Code:
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:
Code:
while not ms.eos() and not token[1] == p1 do


Thanks again.
 
Old 05-08-2013, 02:08 PM   #17
wallworm
Shawn Olson
 
wallworm's Avatar
portfolio
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:

Code:
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,481
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 10:59 AM.


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