I have a virtual texture and I added a border to it with a simple transparent billboard like this:

Now I want to have a script that lets me toggle the border on/off.
I took example on a script made by Cham but that doesn’t work for me. (Nothing happened)

Here is the script:
Code: Select all
-- Title: Vatican border on/ff
front = celestia:find("Sol/Earth/frontiere_vatican")
front:setvisible(not front:visible())
if front:visible() then
celestia:print("Vatican border ON", 2)
else
celestia:print("Vatican border OFF", 2)
end
And the ssc file:
Code: Select all
SurfaceObject "frontiere_vatican" "Sol/Earth"
{
Class "surfacefeature"
Mesh "frontiere.cmod"
Emissive true
Radius 0.567
FixedPosition { Planetographic [ 12.4521 41.90423 0.01 ] }
FixedAttitude { Heading 180 }
#Orientation [0 1 0 0]
}
What is wrong?
