script to lunch vantage

Is there any script sequence to be able to create a button that runs the Vantage Live Link launcher?

You can try running this script.

macroScript StartVantageLink
category:"Corona 12 Update 1 Vantage Live Link"
buttonText:"Start VLink"
toolTip:"Start Corona Vantage Live Link"
(
    on execute do (
        Corona.CoronaFp.vantageLiveLink()
        messageBox "Vantage Live Link Started" title:"Corona Vantage"
    )
)

macroScript StopVantageLink
category:"Corona 12 Update 1 Vantage Live Link"
buttonText:"Stop VLink"
toolTip:"Stop Corona Vantage Live Link"
(
    on execute do (
        Corona.CoronaFp.vantageLiveLink()
        messageBox "Vantage Live Link Stopped" title:"Corona Vantage"
    )
)

fn printMessages = (
    print "Corona Vantage macroscripts created successfully!"
    print "To add buttons to interface:"
    print "1. Right-click on any toolbar/ribbon"
    print "2. Choose 'Customize'"
    print "3. In Category dropdown, select 'Corona 12 Update 1 Vantage Live Link'"
    print "4. Drag StartVantageLink and StopVantageLink to desired toolbar location"
)

printMessages()

Here’s how to use it:

  1. Run the above script in MAXScript editor (press F11)
  2. Paste the script and click the Execute button (or press Ctrl+E)

Now to add the buttons to your interface:

  1. Right-click on any toolbar in 3ds Max
  2. Click “Customize”
  3. In the dropdown menu labeled “Categories”, scroll down and select “Corona 12 Update 1 Vantage Live Link”
  4. You’ll see two new buttons: “Start Corona Vantage Live Link” and “Stop Corona Vantage Live Link”
    Just drag these buttons onto any toolbar you want

I hope this helps.

I have logged this as an idea, hope we can get a proper Vantage toolbar or make the Original works in both engines

It would be ideal for the same bar to work for both engines.

ERROR

looks like you forgot to close the second macro

vale, lo he arreglado y mejorado


global isVantageLinkActive = false -- 
macroScript StartVantageLink
category:"Corona 12 Update 1 Vantage Live Link"
buttonText:"CVLink" -- Nombre del botón
toolTip:"CoronaVantage"
(
    on execute do (

        isVantageLinkActive = not isVantageLinkActive

        if isVantageLinkActive then (
            if Corona != undefined and Corona.CoronaFp != undefined and isProperty Corona.CoronaFp #vantageLiveLink then (
                try (
                    Corona.CoronaFp.vantageLiveLink()
                    messageBox "Vantage Live Link Started" title:"Corona Vantage"
                ) catch (
                    messageBox "Error: Unable to start Vantage Live Link!" title:"Corona Vantage"
                )
            ) else (
                messageBox "Error: Vantage Live Link function not found!" title:"Corona Vantage"
                isVantageLinkActive = false 
            )
        ) else (
            messageBox "Vantage Live Link Stopped" title:"Corona Vantage"
        )
    )

    on isChecked return isVantageLinkActive
)