I want to assign an icon to my custom command named CC_GoToEvent.dll
I tried “CC_GoToEvent.dll.png” and “CC_GoToEvent.png” but it don’t work (the same png file works fine in script directory).
Please, what I’m doing wrong ?
TIA.
The same png files that work with scripts also work in Custom Commands. However, you specify the Custom Command icon differently. You can either specify it in the config file or you can specify it in the dll file itself:
myCC.IconFile = "MyImage.png";
(Use the full path to the icon file)
As mentioned in the first sticky post in this forum:
* Vegas can now be extended by a new kind of compiled script,
called a "custom command", that is loaded when the application
starts and stays 'alive' as long as the application is running.
Custom commands have the ability to respond to changes in project
data, control playback, and present a non-modal user interface.
Custom commands are represented by instances of the CustomCommand
class which provides basic information about the command such as its
category, name, and icon. You can subscribe to events or override
methods on CustomCommand objects to provide their functionality.
It works when I specify it in the dll file itself, but I don’t know how to set the path relatively.
I don't find a way to know where the Custom Command is installed.
Vegas does not read configuration files for application extensions. You must specify the icon file in the code. If needed, your own code can read the icon location from a configuration file.