ScriptSpot

Forum topic · Scripts Wanted

Hyperlinks?

By cuatcside · 2013-02-21

Description

Is there anyway I can define hyperlinks in 3D max. When I click on an object a folder containing photos on my pc pop up or an avi played..?
Thanks.

Comments (6)

ShellLaunch function

Anubis · 2013-02-21

There is HyperLink UI Control, but following your description seems to me ShellLaunch function is what you looking for.

ShellLaunch @"C:\My Pictures\" ""
ShellLaunch @"D:\foo.avi" "/play /loop"

cuatcside · 2013-02-21

Thanks for your help.
So how Do I set this up. lets say I want to play an avi when I click on certain sphere or dummy object in max from a viewport.
Thanks again.

how deep you know MaxScripting?

Anubis · 2013-02-21

Script usually run by clicking a button or hotkey. To "add some action" when an object is selected, you need to play with "events". Take a look in the help docs for Change Handlers and Callbacks.

barigazy · 2013-02-21

U need to use callback fn (#selectionSetChanged). In maxscript help you can find out how to use it ei. how it work

barigazy · 2013-02-21

Hi Panayot,
i did not see that you already post something :)
Cheers!

:)

Anubis · 2013-02-21

am too to see your post after refresh :)