Book a Demo

Author Topic: Current date in shape scripts  (Read 6753 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Current date in shape scripts
« on: August 17, 2020, 07:07:54 pm »
Hey there,

Is there a way to access today's date from within a shape script?
It'd be nice to be able to draw a cross over things which contain a date tag whose value is in the past.

Spanish aunt,


/Uffe
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Current date in shape scripts
« Reply #1 on: August 17, 2020, 07:56:25 pm »
Only via the dreaded add-in.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Current date in shape scripts
« Reply #2 on: August 17, 2020, 09:00:48 pm »
Hey there,

Is there a way to access today's date from within a shape script?
It'd be nice to be able to draw a cross over things which contain a date tag whose value is in the past.

Spanish aunt,


/Uffe
Hey Uffe,
Since you can only test for equality within the shapescript how could you tell it was in the past?  Since you'd have to use an add-in any way, qwerty's answer seems to be the way to go.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Current date in shape scripts
« Reply #3 on: August 17, 2020, 10:08:17 pm »
Since you can only test for equality within the shapescript how could you tell it was in the past?  Since you'd have to use an add-in any way, qwerty's answer seems to be the way to go.

Oh crap, you're right. You can't test for less or greater than in shape script.
What work experience kid cobbled that together again?

Thanks anyway,


/U

My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Current date in shape scripts
« Reply #4 on: August 17, 2020, 11:13:49 pm »
Quote
What work experience kid cobbled that together again?
The sorcerer's apprentice.

q.