SPDL: Using Different Scripting Languages


Here's how to use a different scripting language:


Language ="Python";
Logic
{
def TestButton_OnClicked():
        Application.LogMessage( "Testing" );
}
Language ="Python";
BeginScript
def TestButton_OnClicked():
        Application.LogMessage( "Testing" );
EndScript
Language ="JScript";
BeginScript
function MyButton_OnClicked()
{
        LogMessage( "Test" );
}
EndScript

Note how the Language statement is outside of the BeginScript...EndScript block (that's what the documentation means when it says "not nested").

This page was last modified 18:49, 2 Nov 2010.
This page has been accessed 2735 times.

© Copyright 2009 Autodesk Inc. All Rights Reserved. Privacy Policy | Legal Notices and Trademarks | Report Piracy