如何在本地为子图设置节点?

在下图中,我想代表过程的“结束”:

如何在本地为子图设置节点?

这是我的代码:

digraph anim_retargetting
{
    layout=dot
    compound=true
    fontname="Verdana"
    subgraph cluster_concept {
        style=filled
        color=lightgrey
        label = "Concept"

        edge [label=" needs"]
        node [shape=Msquare]
        "share skeleton animation" -> "same skeleton asset" -> "same skeleton"
    }

    subgraph cluster_setup_humanoid_rig
    {
        style=filled
        color=lightgrey
        label="Setup 'Humanoid Rig'"
        "Pick 'Humanoid Rig'"

        node [style=bold]
        "Pick 'Humanoid Rig'" -> "Mapping bones with Skeleton and Rig."
    }
    subgraph cluster_setup_the_rig_relationship
    {
        style=filled
        color=lightgrey
        label="Setup the rig relationship"
        "Are both skeletons the same?" -> "Yes"
        "Are both skeletons the same?" -> "No" ->
        "Pick 'UE4 Humanoid' skeleton" -> "Pick 'Mixamo' skeleton"

        node [style=bold]
        "Yes" -> "end"
        "Pick 'Mixamo' skeleton" -> "end"
    }

    subgraph cluster_main_flow
    {
        label="Share Same Skeleton Animation"
        "Setup the rig relationship" ->
        "Pick the target skeleton Animation: 'Idle_Rifle_Hip_Break1'" ->
        "Duplicate Asset and Retarget" ->
        "set 'Mixamo' skeleton as target" ->
        "'Select' to confirm"
        node [style=bold]
        "'Select' to confirm" -> "end"
    }
    "Setup the rig relationship" -> "Are both skeletons the same?" [dir=none lhead=cluster_setup_the_rig_relationship]
    "Pick 'UE4 Humanoid' skeleton" -> "Pick 'Humanoid Rig'" [dir=none lhead=cluster_setup_humanoid_rig]
    "Pick 'Mixamo' skeleton" -> "Pick 'Humanoid Rig'" [dir=none lhead=cluster_setup_humanoid_rig]
}

我在cluster_setup_the_rig_relationshipcluster_main_flow子图中放置了2个“ end”节点。 如何通过子图将2个“结束”节点与DOT连接分开? 还是有其他表达相同概念的方法?

jimeidaxuecy 回答:如何在本地为子图设置节点?

在两种情况下,您都使用节点名称,并且名称也被用作节点标识符。通过提供单独的标识符,您可以解决此问题,我使用emfere作为标识符并设置了适当的标签:

digraph anim_retargetting
{
    layout=dot
    compound=true
    fontname="Verdana"
    subgraph cluster_concept {
        style=filled
        color=lightgrey
        label = "Concept"

        edge [label=" needs"]
        node [shape=Msquare]
        "share skeleton animation" -> "same skeleton asset" -> "same skeleton"
    }

    subgraph cluster_setup_humanoid_rig
    {
        style=filled
        color=lightgrey
        label="Setup 'Humanoid Rig'"
        "Pick 'Humanoid Rig'"

        node [style=bold]
        "Pick 'Humanoid Rig'" -> "Mapping bones with Skeleton and Rig."
    }
    subgraph cluster_setup_the_rig_relationship
    {
        style=filled
        color=lightgrey
        label="Setup the rig relationship"
        "Are both skeletons the same?" -> "Yes"
        "Are both skeletons the same?" -> "No" ->
        "Pick 'UE4 Humanoid' skeleton" -> "Pick 'Mixamo' skeleton"

        node [style=bold]
        ere[label="end"]
        "Yes" -> ere
        "Pick 'Mixamo' skeleton" -> ere
    }

    subgraph cluster_main_flow
    {
        label="Share Same Skeleton Animation"
        "Setup the rig relationship" ->
        "Pick the target skeleton Animation: 'Idle_Rifle_Hip_Break1'" ->
        "Duplicate Asset and Retarget" ->
        "set 'Mixamo' skeleton as target" ->
        "'Select' to confirm"
        node [style=bold]
        emf[label="end"]
        "'Select' to confirm" -> emf
    }
    "Setup the rig relationship" -> "Are both skeletons the same?" [dir=none lhead=cluster_setup_the_rig_relationship]
    "Pick 'UE4 Humanoid' skeleton" -> "Pick 'Humanoid Rig'" [dir=none lhead=cluster_setup_humanoid_rig]
    "Pick 'Mixamo' skeleton" -> "Pick 'Humanoid Rig'" [dir=none lhead=cluster_setup_humanoid_rig]
}
本文链接:https://www.f2er.com/3038527.html

大家都在问