Is there a way to use the engine.projectpath command without it being dependent a project being active in the Project Manager? I have the following script:
'declare variables
dim baseobj as xpbaseobject
dim state as xpTextObject
'get scene objects
Self.getobjectbyname("State", baseobj)
Self.getobjectbyname("Selected State", state)
'set state icon
baseobj.SetVolatileTextureFile(0, engine.ProjectPath & "Images\States\" & state.text & ".png")
This works so long as the project is active. Our stations will generally have multiple projects loaded at once, so there is no guarantee that the project using this script will be active. I thought about using engine.GetProjectByName, but because the project name changes every time I do an increment and save I would have to go in and update this script every time I update the project. Any advice would be greatly appreciated. Thanks.