Page 1 of 1

help for timeline command on the ISS

Posted: 26.07.2009, 07:13
by linuxm@n
To simplify my iss ssc file i want to include the "timeline" command for my next release "iss-construction",
i had a look to the cassini example on the wiki an tried to ajust it to my zvezda solar panels.
here is the ssc file:

#Timeline test
"Zvezda-panneaux" "Sol/Earth/Zarya/Zvezda"
{
Class "spacecraft"
Mesh "zvezdapan.3ds"
Radius 0.0151695135

Timeline [
# Phase 1: no rotation on solar panels
{
Beginning "2000 07 26 12:00:00"
Ending "2000 07 26 13:15:00"

OrbitFrame { BodyFixed { Center "Sol/Earth/Zarya/Zvezda" }}
FixedPosition [-0.001656 -0.001110 0.000023]
BodyFrame { BodyFixed { Center "Sol/Earth/Zarya/Zvezda" }}
FixedRotation { }
}

# Phase 2: solar pannel folow the sun
{
Beginning "2000 07 26 13:15:00"

OrbitFrame { BodyFixed { Center "Sol/Earth/Zarya/Zvezda" }}
FixedPosition [-0.001656 -0.001110 0.000023]
BodyFrame { BodyFixed { Center "Sol/Earth/Zarya/Zvezda" }}
RotationOffset 130
RotationPeriod -1.540233408
}
}
] # End Timeline
}


#End Timeline test

Then using this ssc file i can't see any solar panel, and others meshes following this part of my iss ssc file have disapears.

Thank you

Linuxman

Re: help for timeline command on the ISS

Posted: 26.07.2009, 08:51
by Chuft-Captain
Linuxman,

It looks like you've messed up your closing braces ... (there's one too many close braces ("}"), and you've terminated the Timeline too late (outside the object block). See: http://en.wikibooks.org/wiki/Celestia/1 ... _Timelines

#Timeline test
"Zvezda-panneaux" "Sol/Earth/Zarya/Zvezda"
{
...
Timeline [
# Phase 1: no rotation on solar panels
{
....
}

# Phase 2: solar pannel folow the sun
{
....
}

} <--- This is actually the end of Zvezda-panneaux
] # End Timeline <--- move this up one line.
} <--- delete this


Try this:

Code: Select all

#Timeline test
"Zvezda-panneaux" "Sol/Earth/Zarya/Zvezda"
{
   Class "spacecraft"
   Mesh "zvezdapan.3ds"
   Radius 0.0151695135

   Timeline
   [
      # Phase 1: no rotation on solar panels
      {
         Beginning "2000 07 26 12:00:00"
         Ending "2000 07 26 13:15:00"

         OrbitFrame { BodyFixed { Center "Sol/Earth/Zarya/Zvezda" }}
         FixedPosition [-0.001656 -0.001110 0.000023]
         BodyFrame { BodyFixed { Center "Sol/Earth/Zarya/Zvezda" }}
         FixedRotation { }
      } # End Phase 1

      # Phase 2: solar pannel folow the sun
      {
      Beginning "2000 07 26 13:15:00"

         OrbitFrame { BodyFixed { Center "Sol/Earth/Zarya/Zvezda" }}
         FixedPosition [-0.001656 -0.001110 0.000023]
         BodyFrame { BodyFixed { Center "Sol/Earth/Zarya/Zvezda" }}
         RotationOffset 130
         RotationPeriod -1.540233408
      } # End Phase 2
   ] # End Timeline
}   # End Zvezda-panneaux

#End Timeline test


CC

Re: help for timeline command on the ISS

Posted: 28.07.2009, 06:25
by linuxm@n
Chuft-Captain wrote:Linuxman,

It looks like you've messed up your closing braces ... (there's one too many close braces ("}"), and you've terminated the Timeline too late (outside the object block). See: http://en.wikibooks.org/wiki/Celestia/1 ... _Timelines



Thank you, with your ssc file i can see the others meshes, i have just delete some dates in the ssc file (now just the ending date on the first phase)

I do the same timeline to zvezda and others meshes.

Linuxman