Notifications
Clear all

[Closed] Can struct object inherit Node

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 ?

2 Replies

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.

Thank u very much. I only can add Node object to Struct.