View Full Version : Can struct object inherit Node

03 March 2008, 06:06 AM
Struct originally inherit Value , so it has these methods like print(), format(), classOf(), superClassOf(), isKindOf()....
I want to define a Struct as a Node object which has attributes pos, rotation,dir and pivot.
The simple way is to inherit Node . How can I do to inherit Node ?

03 March 2008, 06:48 AM
MAXScript isn't an object oriented language so you cannot inherit anything. You have to add these properties to your struct or hold a node object in it.

03 March 2008, 05:05 PM
Thank u very much. I only can add Node object to Struct.

CGTalk Moderation
03 March 2008, 05:05 PM
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.