Un-Isolate selected constellations

Feedback
2012-09-22
2016-11-13
  • Ian Hargraves

    Ian Hargraves - 2012-09-22

    Hi Guys,
    I have written a script that displays the southern sky (from 51 degs North) to
    show what is in the night sky to my astronomy group.

    I now want to highlight Pegasus and then Andromeda by selecting the
    constellations then turning the lines on then the art. Then I want to deselect
    the two constellations and turn the lines back on for all the constellations.

    The problem I appear to have is that I can't deselect Pegasus and Andromeda.
    Can anyone advise what I am doing wrong in the following script please:

    ConstellationMgr.setFlagArt(false);
    ConstellationMgr.setFlagLines(false);

    core.selectObjectByName("Pegasus", false);
    ConstellationMgr.setFlagIsolateSelected(true);

    core.debug("Pegasus art and lines only")
    ConstellationMgr.setFlagLines(true);
    core.wait(3);

    ConstellationMgr.setFlagArt(true);
    core.wait(3);

    core.debug("turn off Pegasus art but leave lines on")
    ConstellationMgr.setFlagArt(false);
    core.debug("Pegasus art off")
    core.wait(3);

    core.debug("Add Andromeda lines to Pegasus lines")
    core.selectObjectByName("Andromeda", true);
    ConstellationMgr.setFlagIsolateSelected(true);
    ConstellationMgr.setFlagLines(true);
    core.wait(3);

    ConstellationMgr.setFlagArt(true);
    core.debug("Andromeda art on")
    core.wait(3);

    // turn off both arts
    ConstellationMgr.setFlagArt(false);

    ConstellationMgr.setFlagIsolateSelected(false);
    core.selectObjectByName("", false);
    ConstellationMgr.setFlagLines(true);

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2016-11-13

    Hi!

    I had the same problem with 0.15. I would like to create a script highlighting constellations one by one in a particular order and particular features. I have there is a standard script doing a tour on constellations. I do something very similar, but I wanted to see the constellations individually - I mean the boundaries, the lines, the star names, the artwork etc only for one constellation at a time in a long loop. I cannot find the way to do so: core.selectObjectByName("", false); does not work. All previously selected constellations remain selected.

    I found a simple work around (which costed me a day of trials): when you need to deselect the constellations, simply select a known star which is NOT part of any constellation pattern (not appear in any constellation line). I used

    // Dirty trick to deselect:
    core.selectObjectByName("83 Uma",true);

    This effectively deselects all previously selected constellations.

    Regards

     


Anonymous

Cancel  Add attachments