Page MenuHomeFeedback Tracker

Creating Shape-markers in Eden Editor is not possible
Closed, ResolvedPublic

Description

It's not possible to create shape markers in Editor with script command.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Eden Editor
Steps To Reproduce
  1. Eden editor
  2. Debug Console
  3. Execute code:
_m = create3DENEntity ["Marker", "rectangle", [3350,4500,0]];
_m set3DENAttribute ["markerType", "RECTANGLE"];
Additional Information

Of course, I can create simple marker via something like

_m = create3DENEntity ["Marker", "mil_dot", [3350,4500,0]];

But all tries to change to shape gives no result:

_m set3DENAttribute ["markerType", "RECTANGLE"];

Event Timeline

genaDeus created this task.Jun 15 2021, 6:29 PM
genaDeus edited Additional Information. (Show Details)
genaDeus edited Additional Information. (Show Details)
genaDeus renamed this task from Creating Shape-markers not possible to Creating Shape-markers in Eden Editor is not possible.Jun 15 2021, 6:34 PM

Of course, I can create simple marker via something like

_m = create3DENEntity ["Marker", "rectangle", [3350,4500,0]];

This is not a valid marker as there is no class "rectangle" in CfgMarkers, you should get error

BIS_fnc_KK changed the task status from New to Need More Info.Jun 15 2021, 11:45 PM
R3vo added subscribers: Killzone_Kid, R3vo.EditedJun 16 2021, 2:15 PM
_m = create3DENEntity ["Marker", "mil_dot", [100, 100, 0]]; 
_m set3DENAttribute ["markerType", 1]; //Unsure if number or string (like setMarkerShape). Attribute returns -1 as default value and 1 or 2 for rectangle/ellipse
_m set3DENAttribute ["brush", "DiagGrid"]; 
 
[_m get3DENAttribute "itemClass", _m get3DENAttribute "markerType", _m get3DENAttribute "brush"]

Seems like markerType and brush have no effect. @BIS_fnc_KK

@R3vo can icon marker have brush or shape? Because 3DEN markers created as icons

genaDeus edited Additional Information. (Show Details)Jun 16 2021, 7:02 PM
genaDeus added a comment.EditedJun 16 2021, 7:36 PM

@BIS_fnc_KK, I fixed misprint in the ticket additional info. And @R3vo has alredy described this correctly above.

In summary, any try to change icon marker to shape marker via changing "markerType" fails.
And you are right, it's not possible to create shape marker as there are no class "rectangle"/"ellipse" in CfgMarkers.

Note, for the markers created with GUI values "RECTANGLE" or "ELLIPSE" are being set for "markerType" parameter in "mission.sqm"!

So how to create a shape marker with a script only in Eden?

BIS_fnc_KK changed the task status from Need More Info to Assigned.
R3vo added a comment.Jun 16 2021, 11:39 PM

@R3vo can icon marker have brush or shape? Because 3DEN markers created as icons

Well, for default makers one can simple create them without defining icon or shape and then decided if it's an icon or shape marker. With create3DENEntity this isn't possible so one has to set a marker to icon first.

BIS_fnc_KK added a comment.EditedJun 17 2021, 12:31 AM

Fixed in revision: 147769

So how to create a shape marker with a script only in Eden?

m = create3DENEntity ["Marker", "", position player]; // default rectangle marker
m set3DENAttribute ["markerType", 1]; //0 - rectangle; 1- ellipse 
m set3DENAttribute ["brush", "DiagGrid"];
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jun 17 2021, 12:32 AM
BIS_fnc_KK changed the task status from Assigned to Feedback.
R3vo closed this task as Resolved.Jul 3 2021, 9:04 AM
R3vo claimed this task.

Fixed.