I started to implement the macro to add a new layer and move the strokes.
The code still have problems, the macro adds the new layer but GREASE_PENCIL_OT_move_to_layer
is not executed
The assert is in line 945 in attributte_access.cc
when it try to use the function copy_attributes
.
Really don't know if there is a problem with my code or inside that function
As I mentioned in the PR description in GPv2 there were three modes for the Separate operator: Selected Point, Selected Strokes and Active Layer. For better consistency with meshes the Separate…
This line actually prevents creating a new object if the layer is selected. In Separate by Layers we need to keep one layer (selected) on the source object and only create a new object for the…
Thanks for the update!
It's good to go now, but I would like a confirmation from the Grease Pencil team that this icon change is ok with them. cc: @mendio
looks great, from our side…
I see, just updated the grease_pencil_move_to_layer_exec
to use an string property.
I guess we only have to tackle the macro. Do you have a sample for me to see?
maybe I don't get what is your idea. Right now layer
property stores the layer index and that is what we use in grease_pencil_move_to_layer_exec
to determine the target layer. The property…