Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / ActiveX differences between 3dsMax8 and 3dsMax9
  RSS 2.0 ATOM  

ActiveX differences between 3dsMax8 and 3dsMax9
Rate this thread
 
243
 
Permlink of this thread  
avatar
  • kadams6
  • Posted: 26 September 2007 04:36 PM
  • Total Posts: 1
  • Joined: 23 August 2006 11:03 AM

Hello All,

I’ve been reading that we will need to convert all activeX components into .Net for Max 9 64 bit applications. But I’m unclear as to whether scripts written for Max 8 with activeX components should still work in Max 9 for 32 bit applications. Specifically, I’m having trouble with the Winsock activeXControl. Even more to the point, when I execute the “winsockTester” example in the MAXScript Reference in Max 8, I get the following :

Rollout:winsockTester
true
Connecting ...
Connected.
50 bytes received.
Data: +OK ready <8387.1190833560@mailbox.iwaynet.net>

But when I execute the exact same code in Max 9, I get (note there’s no data):

Rollout:winsockTester
true
Connecting ...
Connected.
51 bytes received.
Data:

I’m sure I’m doing something wrong, but I can’t figure out what it is. It just seems that the p = axWinsock.getdata &wsckdata call is working differently in version 9 than it did in version 8. Perhaps I have clobbered some dll or ocx file or something. Could someone with Max 9 run that example and post the results? It’s the only winsockTester code in the reference file. Thanks so much!



Replies: 0
avatar

I’m running up against some troubles here with active-x myself as well.  I have quite a few scripts that generally seem to be working just fine in 32-bit max 9 (on XP pro), but that fail with active-x errors in 64-bit max 9 (on XP64).  These seem to all be “class not registered” errors and I also see them when attempting to run the example scipts in the maxscript docs.

Does anyone know if there is simply something extra that needs to be installed on XP64 to get this to work?  Any insight would be great.  Thanks!

-nathan



Nathan Fariss
http://www.hello-napalm.com

Replies: 0
avatar

From the 3ds max 2008 Maxscript Reference:

The main reason for the introduction of DotNet support in MAXScript was the fact that ActiveX controls which were largely used in the 3ds Max User Interface were made unavailable in 64 bit Windows versions.

Scripts developed for versions prior to 3ds Max 9 would require a rewrite to be able to run under 64 bit Windows operating systems.

Not all ActiveX controls have been recompiled for the 64 bit versions of Microsoft Windows. Various areas of the 3ds Max User Interface rely on ActiveX controls like TreeView and ListView. To provide an alternative implementation of these and other controls, 3ds Max 9 and higher provide access to DotNet Classes, Objects and Methods and provides a dotNetControl User Interface Control to use in MAXScript Rollouts.

If you want 64bit support you will be better off using .Net controls instead of ActiveX. From what I have read elsewhere if you don’t install 3ds max prior to 3ds max 9 you may not have the ActiveX controls available to you.

-Eric



Eric Craft
“The Evil Monkey hiding in your closet.”

Replies: 0
avatar

But when I execute the exact same code in Max 9, I get (note there’s no data):

Rollout:winsockTester
true
Connecting ...
Connected.
51 bytes received.
Data:

Same problem with Max2008 (32bit)..data is empty

Any ideas how to get that working..?



Replies: 0
avatar
  • pen
  • Posted: 22 April 2009 10:00 AM

In Max 9, 2008, 2009, 2010 and up you will need to be using dotNet and not active X.

commodore64 wrote:
>> But when I execute the exact same code in Max 9, I get (note there’s no data):
>
> Rollout:winsockTester
> true
> Connecting ...
> Connected.
> 51 bytes received.
> Data:
>
> Same problem with Max2008 (32bit)..data is empty
>
> Any ideas how to get that working..?



Paul Neale
PEN Productions Inc.
penproductions.ca / paulneale.com
Master Classes for Max, Mudbox and Composite
DotNet Tutorials

MX Driver Car and Trailer Rig On Sale!

Replies: 0