Notifications
Clear all

[Closed] Including a maxscript in a file?

Let’s say I want to sell a 3D model on a marketplace and I would like the customers who buy my model to be able to run a maxscript at the press of a button in my scene, is it possible to make this totally transparent for them? Is it possible to just include a maxscript with a max scene and make it possible for someone to run it by just pressing a button (for example selecting an object containing the script and just have to activate a checkbox on a property of that object to make the script run?

6 Replies

sure it’s possible. the question is – what would happen if the client doesn’t push the button? in another words… why has the user to press a button?

My idea is instead of supplying many scene or animated scenes to offer many configurations for a scene, there could instead be an object that the customer can select and have a menu of different configurations for the scene. But I would like it to be easy for total newbie. So no script install just an object containing the script in the scene.

In the description of my scene on the market place I can tell just select that object to configure the scene.

A very simple example would be a jet fighter with all missilles hidden and cockpit open, then you press the button and the cockpit closed and all missiles are unhidden.

I know with layers it could be done easily with layers for hiding unhiding, but for example Turbosquid oddly does not allow layers for checkmate pro at least offically.

So how can we do it?

What about using State Sets to do it? Setup different states with objects hidden/unhidden.

To answer your question yes you could put the code in a custom attribute or callback to execute on a value change, but I think the option above would be quicker and easier to setup.

-Eric

Thanks but I don’t trust state sets enough to use them should I?

Anyway I just included a maxscript with my scene finally. But i may investigate your solutions next time.

store it in CA , userapp or attributes , maybe??