Page MenuHomeFeedback Tracker

Add support for custom Eden Editor connections
Assigned, NormalPublic


Currently it doesn't seem like Eden Editor supports connections between two objects which execute a custom expression. Currently all available connections are handled inside the engine.

class Group
	displayName = "Group to";
	data = "Group";
	color[] = {0,1,1,1};
	cursor = "3DENConnectGroup";

So what we need is something like this:

class Attach
	displayName = "Attach";
	expression = "_this # 0 attachTo _this  #1"; //_this <array> with two objects ([fromObject, toObject]). Expression should then 
                                                                              be executed on the server
	color[] = {0,1,1,1};
	cursor = "3DENConnectGroup";
        condition = "hoverObject"; //Same simple conditions used for all other context related entries

Event Timeline

R3vo created this task.Nov 19 2020, 10:32 AM
dedmen added a subscriber: dedmen.EditedDec 16 2020, 12:40 PM

How would you set attributes onto the connection?
Would aka attach offset and stuff?
or should it just keep the transform it had before and just stay relative to the object its attached to?

Do we just want to add a new data="AttachTo" type then?

RandomStart is a good example to work off of.
It does a setPos at mission start, can just build off of that and do a attachTo instead.

that wouldn't be support for custom connections, but rather AttachTo connection only.

custom script thing could... Ah now I see. define custom expressions in config.

There will need to be a second expression for when the connection is removed, as you will need to detach.
and it will need to correctly work with editor undo

dedmen claimed this task.Jan 29 2021, 12:28 PM
dedmen changed the task status from New to Assigned.
dedmen set Ref Ticket to AIII-53661.