ScriptSpot home

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)
Panayot Karabakalov

ShellLaunch function

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"

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.

Reply to cuatcside
Panayot Karabakalov

how deep you know MaxScripting?

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.

Reply to cuatcside
Branko Živković

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