Author Topic: Handling of the objects  (Read 1644 times)

0 Members and 1 Guest are viewing this topic.

Vol2

  • Newbie
  • *
  • Posts: 29
    • View Profile
Handling of the objects
« on: January 24, 2024, 02:17:00 PM »
I can't get any further with the handling of the objects.

For example, if I want to mirror planets over an axis and then display these planets in a biweel outside,

I have set the calculated positions with " setplanets(1, planet); " to horoscope 2.

The planets are displayed correctly.

But what do I do with the objects ?

"setobjects" does not exist as a command.

And it didn't work for me with the following code either.

Code: [Select]
i = 0; for (i < PLANETS)
   planet[i] = normalize(axis - (planets[i] - axis));

i = 0; for (i < OBJECTS){
  getplanet(i + PLANETS, 0, res);
  object[i] = res[0];
  object[i] = normalize(axis - (object[i] - axis));

setplanet(i, object[i]);}                                            `Is this right ?

setplanets(1, planet);

drawhoroscopex(1, 0, 0, 0, 0, 1250, 775, 0);

but the position of the objects  doesn't change in horoscope 1 or 2.

So I haven't fully understood something here.
« Last Edit: January 24, 2024, 02:54:08 PM by Vol2 »

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
    • View Profile
Re: Handling of the objects
« Reply #1 on: January 24, 2024, 03:53:02 PM »
This was ugly. There is no decent way to do that, objects are always calculated on the fly.
This is a hack, using type 22, which is composite midpoints, because midpoints is one of the types where objects are not calculated the normal way, their midpoints are calculated and stored in a special place for drawhoroscope to pick up.
So setting type to 22 causes drawhoroscope to get them this way too. You need to update for this.

Then command(25, n, &x, 0) actually sets object n to a value, in this case 10.5.
Note you must use the 'address of' operator &, because command() only can do integer values.

Code: [Select]
window(0, 0);
copyhoroscope(-1, 0);
real x = 10.5;
command(25, 6, &x, 0);
settype(0, 22);
drawhoroscope(0, 0, 0, 0, 0, 0, 0);
run;
Greetings from Groningen Netherlands.

Vol2

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Handling of the objects
« Reply #2 on: January 24, 2024, 05:58:42 PM »
Thanks for the quick reply.

I will try to implement your advice tomorrow.


But I wonder why horoscope-harmonic and age-harmonic seem to work without this "hack".


The second thing is that after the last 2 updates, the planetary positions and the element table are no longer visible.


Does anyone else have this problem?

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
    • View Profile
Re: Handling of the objects
« Reply #3 on: January 24, 2024, 06:09:23 PM »
'Seem to work'? I don't understand.

No problem with positions or element table here and you're the first to report. Can't you put them back on in options - settings?
Greetings from Groningen Netherlands.

Vol2

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Handling of the objects
« Reply #4 on: January 24, 2024, 06:28:07 PM »
Here is a picture,
If you close the chart and reopen it, sometimes everything is ok again, sometimes it stays that way.
When changing the settings, pd crashed twice, but not every time.
I resisted downloading again, but the behavior persists.

PS.
When I call biweel everything is ok.
The carts that I load afterwards are also ok.
When I restart PD the charts have the error again.
« Last Edit: January 24, 2024, 06:43:24 PM by Vol2 »

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
    • View Profile
Re: Handling of the objects
« Reply #5 on: January 24, 2024, 07:25:28 PM »
i'm having troubles, i put back an older version, try to update.
Greetings from Groningen Netherlands.

Vol2

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Handling of the objects
« Reply #6 on: January 24, 2024, 07:30:44 PM »
With the update from 6:59 p.m. everything is working ok again.

Thanks Jean

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
    • View Profile
Re: Handling of the objects
« Reply #7 on: January 24, 2024, 07:39:40 PM »
Found the bugger, deleted a line somewhere today i thought was not needed but forgot to look a bit closer. :( So latest update is out again.
Greetings from Groningen Netherlands.

Vol2

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Handling of the objects
« Reply #8 on: January 25, 2024, 07:22:51 AM »
I did a few tests on my objects problem this morning.

It works when a single chat is created (type PROGUSER or COMPMIDP), it no longer works correctly as soon as a biwheel is used. The objects then have the original position in both charts.

As an alternative solution the mousepointer now shows the  mirrorpoint-positions in the title bar.

But I would prefer to have the mirrored objects correct in the outer circle.

I am open for further suggestions.

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
    • View Profile
Re: Handling of the objects
« Reply #9 on: January 25, 2024, 07:31:09 AM »
That's all i can do Volker, it's already a hack.
Greetings from Groningen Netherlands.