ActiveX fix for controls/objects without a default interface

MAXScript Language Improvements in 3ds Max 5

 

In previous releases, a problem has been preventing applications like Adobe Photoshop from being used as a comobject. This was caused by the fact that they have only one main interface and do not mark it as a default interface.

MAXScript now checks for such cases. This change will not affect already functioning scripts.

Here is an example of launching Photoshop from inside of 3ds Max:

Example:

rollout rPhotoshop "Photoshop Application"

(

 activeXControl ax "Photoshop.Application" height:200 width:300

)

createDialog rPhotoshop 400 400

showProperties rPhotoshop.ax

rPhotoshop.ax.open "d:\\temp\\appledis.jpg"

rPhotoshop.ax.actions[1].name

rPhotoshop.ax.playAction "My Action"

 

See also

ActiveX Controls in MAXScript Rollouts

MAXScript Language Improvements in 3ds Max 5