Changing group patern direction

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

Moderator: Moderators

Rik
Posts: 1
Joined: 21 Feb 2025, 12:00

Changing group patern direction

Postby Rik » 21 Feb 2025, 12:09

Hey Guys, I am working on a new macro for creating my groups. I want to make symetrical odd/even, 1/3 and 1/4 groups. To accomplish this on the console I change the direction from none to VerticalBlinds. This way the groups are symetrical. But I can't seem to figure out how I accomplish this within a macro. I attached my current macro at the bottom of this post.
Does anyone have an idea how to make this work?

This is the group creating part of the macro
<!-- Select group 1, pattern 1/3. as Group Usernumber 4,5,6 -->
<step>Group.RecallGroup(userNumber: 1)</step>
<step pause="0.001">Command.RunCommand("PATTERN 1 IN 3")</step>
<step>ActionScript.SetProperty.Boolean("Selection.Context.Global.RepeatPattern", true)</step>
<step>Group.ReplaceGroupOnHandle(userNumber:4)</step>
<step>Programmer.Editor.Selection.PatternNext()</step>
<step>Group.ReplaceGroupOnHandle(userNumber:5)</step>
<step>Programmer.Editor.Selection.PatternNext()</step>
<step>Group.ReplaceGroupOnHandle(userNumber:6)</step>
<step pause="0.001">Programmer.Editor.Clear(Attribute.Mask.Clear.Value, Programmer.Editor.Fixtures.Clear.Presets, false, Expert.ClearMenu.FadeTime)</step>
User avatar
kimwida
Posts: 263
Joined: 05 Aug 2016, 16:26
Location: Seoul

Re: Changing group patern direction

Postby kimwida » 02 Apr 2025, 18:23

Code: Select all

   <step pause="0.01">Group.RecallGroup( Handles.GetHandle("Groups",0,0) )</step>
   <step pause="0.01">Command.RunCommand("PATTERN 1 IN 3")</step>
   <step pause="0.01">ActionScript.SetProperty.Enum("Selection.Context.Global.Direction","VerticalBlinds")</step>
   <step pause="0.01">Group.StoreMenu.StoreOnButton("Groups",11,11)</step>


You can use "LeftToRight", "TopDown","HorizontalBlinds","RightToLeft","BottomUp","TopLeftIn","TopRightIn","RadialMiddle","BottomLeftIn","BottomRightIn","BottomMiddleUpRadial","EndsInLinear" and "Random" instead of "VerticalBlinds".

Who is online

Users browsing this forum: No registered users and 4 guests