Palette.RecordPaletteReferences

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

User avatar
sideshowbond
Posts: 182
Joined: 18 Nov 2016, 20:58

Palette.RecordPaletteReferences

Postby sideshowbond » 18 Nov 2019, 22:06

I am trying to toggle nested palettes via macro (or 2 macros respectively)

I figured as much as

Code: Select all

ActionScript.SetProperty(Palette.RecordPaletteReferences, True)

needs to be a string however parsing the show.xml comes up with boolean values.

Bit stumped I am, any insight would be cool :)
icke_siegen
Posts: 1086
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

Re: Palette.RecordPaletteReferences

Postby icke_siegen » 19 Nov 2019, 06:43

i'd expect this to be a boolean. Also, the property name needs to be in quotes.

how about this:

Code: Select all

ActionScript.SetProperty.Boolean("Palette.RecordPaletteReferences", True)
User avatar
sideshowbond
Posts: 182
Joined: 18 Nov 2016, 20:58

Re: Palette.RecordPaletteReferences

Postby sideshowbond » 19 Nov 2019, 09:02

Bingo, rookie error.

Log viewer was telling me something about a Boolean values it was expecting as string, hence my unsophisticated guess...

Code: Select all

      <active binding="{propertyLink id='Palette.RecordPaletteReferences' converter='Math.NotConverter'}"/>
      <sequence>
         <step>ActionScript.SetProperty.Boolean("Palette.RecordPaletteReferences", False)</step>
      </sequence>
works brilliantly now

I'll put this in my groups window (where all my other programming macros are) to quickly toggle between nested on or off :)
User avatar
Gregory
Posts: 1300
Joined: 14 Dec 2007, 15:25
Location: London, United Kingdom
Contact:

Re: Palette.RecordPaletteReferences

Postby Gregory » 19 Nov 2019, 13:40

If you wanted it to toggle you could do this:

Code: Select all

ActionScript.SetProperty.Boolean("Palette.RecordPaletteReferences", !Palette.RecordPaletteReferences)

This might work quite well in conjunction with the active indicator.
User avatar
sideshowbond
Posts: 182
Joined: 18 Nov 2016, 20:58

Re: Palette.RecordPaletteReferences

Postby sideshowbond » 20 Nov 2019, 15:45

This might work quite well in conjunction with the active indicator.


Genius, thank you.

Who is online

Users browsing this forum: No registered users and 13 guests