Jump to content

Script to Set the Active Class


Recommended Posts

Does anyone know if it's possible to create a script set the active class. I'd like to have a small palette on screen that sets my most used classes as the active class. This would give a much quicker way of getting to the classes I need the most without constantly searching through the full class list. I'm aware you can do it with saved views (as I've shown on the attached screenshot) but if possible I'd prefer to have it in a seperate list. 

 

5a27c6f453be0_ClassPaletteScreenshot.thumb.png.2bff2b31d78027d730305c2c30510532.png

Edited by SgtPepper
Link to comment

Sure the script can be a single line:

 

NameClass('My Class Name');

 

Where you replace My Class Name with the appropriate name.

 

Two things. 1. If you make a typo in the class name, it will create a new class and set that class to active. 2. The Function Reference says class names have a maximum of 20 characters. I don't think that is still the case, but I am not certain.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...