Share

Try not to use Execute function if there is an alternative

Very few cases require the use of the execute function.

MAXScript has many introspection methods and properties:

  • getPropNames <maxobject>

  • getProperty <maxobject> <prop>

  • setProperty <maxobject> <prop> <val>

  • isProperty <maxobject> <prop>

  • getInterfaces <maxobject>

  • <maxobject>.custattributes

  • <rollout>.controls

  • getNodeByName <string>

Valid cases are:

  • Dynamic Rollout creation

  • Dynamic scripted CA creation

Previous Tip

Use name values instead of strings when possible

Next Tip

For Loop By Index Vs For Loop Through Collection Performance

Was this information helpful?