Notifications
Clear all

[Closed] Creating variables in a script controller via maxscript

Hi Guys!:

I was creating a script controller dynamically via maxscript that needed some variables and found a little problem.
I searched in the help but couldn’t find a way to define variables in a script controller created with maxscript (in the same way you can create them with the interface). Should they be created via weakReferences?. Thanks in advance!!

5 Replies

Auch, as usual just answered myself after posting…

It’s done with addNode
sorry

1 Reply
(@rustyknight)
Joined: 11 months ago

Posts: 0

It’s amazing how often this happens

Shane

 PEN

use showInterfaces on the script controller and it will print out what you need.

Thanks
Strange it was not in the help. But good to know how useful showInterfaces can be

 JHN

Don’t say it’s not in the help… cautiously looks around he’ll find you!..

Anyway it’s in the help file “showInterface Inspector Function”
there’s more handy functions like that like showproperties.

It’s not mentioned in the script controller page because it’s a general purpose function.

-Johan