Macro ignores condition
Posted: 27 Apr 2019, 23:20
to improve my Showfile Setup Macro i created a macro that sets position palettes in order to check if following macros are supposed to create movement shape for this group.
this creates the controll palette
and this is in short the later following macro that creates a movement shapr for group 101 if the preset 101 is existing.
and here its gettin wierd x) even if the palette preset is not existing, it creates the movement shape :/
i have no idea why x)
any ideas?
Code: Select all
<step>Group.CheckIfGroupExists(101, "Palette.Numeric.IsValid")</step>
<step pause="0.5">
{
if(Group.Numeric.IsValid) {
Group.RecallGroupNumeric(101);
Programmer.Editor.Fixtures.SetControlValueById(48,1,0.5,true,true);
Palette.StoreMenu.StoreOnButton("Positions",0);
Programmer.Editor.Clear(2, true, true, 0);
}
}
</step>
<step pause="0.001">Handles.SetSourceHandle("Positions", 0)</step>
<step pause="0.001">ActionScript.SetProperty("Handles.CurrentUserNumber", userNumber:101)</step>
<step pause="0.001">Handles.SetUserNumber()</step>
<step pause="0.001">ActionScript.SetProperty("Handles.PendingLegend", "Spot Move Check")</step>
<step pause="0.001">Handles.SetLegend()</step>
<step pause="0.001">Handles.ClearSelection()</step>
this creates the controll palette
Code: Select all
<step>Palette.CheckIfPaletteExists(101, "Palette.Numeric.IsValid")</step>
<step pause="0.5">
{
if(Palette.Numeric.IsValid) {
Group.RecallGroupNumeric(101);
...
...
...
Playbacks.PlaybackEdit.Exit();
}
}
</step>
and this is in short the later following macro that creates a movement shapr for group 101 if the preset 101 is existing.
and here its gettin wierd x) even if the palette preset is not existing, it creates the movement shape :/
i have no idea why x)
any ideas?