MXS: struct definition, local variables, declaration order etc...

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
Originally Posted by wallworm: Josef... you mention using "this" (like this.varA) . How far back is this compatible. I used this when I first starting MAXScript in a struct for a while (as it's how I'm used to programming in other languages) but got a bunch of emails from people who had MAXScript exceptions when I used that. I had to update the code to never use (though for whatever versions of Max I was testing it always worked).

How commonly does anyone here use this ?

i use this a lot. it was added to structure system about 10 years ago. max 8???
  03 March 2013
I think you're wrong. Doesn't work on max 2009. It's either 2010 or 2011. Perhaps you mean this in the context of a controller, which was max8 I think.
  03 March 2013
Originally Posted by lo: I think you're wrong. Doesn't work on max 2009.

really? max 2010 has it.
  03 March 2013
Originally Posted by denisT: really? max 2010 has it.

I am pretty sure that when I started writing MAXScript, I was using either 3ds Max 2010 or 2011. All was fine in a certain script until I changed to using this.whatever in a game exporter I work on, and a bunch of users sent complaints ... so I had assumed at the time that this was only recently added. So I've avoided it since.
Shawn Olson
Autodesk Expert Elite
3ds Max Charter Member

Developer of:
Wall Worm Tools for the Source Game Engine
CorVex Level Design Plugin
  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 02:45 PM.

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