Article - Converting a Real Name to a "full" Real Name

Skip to end of metadata
Go to start of metadata

Overview

The Squish IDE offers to copy the real name of objects from the object map editor or the Application Objects view. However, these real names typically contain references to other objects. These references in turn are symbolic names as well.

This means that if you want to have a real name that does not contain any symbolic names anymore, you have to manually perform the transformation, replacing the symbolic names via copy and paste, which is a tiresome and error prone task.

Here is a little function that can do the transformation for you:

Python:

test.py

JavaScript:

test.js

The following workflow might be easiest:

  • Put the above function in your source code (or load it from a shared script via source().
  • Set a breakpoint and execute to it.
  • Pick the desired object and copy the real name.
  • In the Squish Script Console (to show the console go to Window | Show View... | Other... | General | Console) call the above function with the real name.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.