首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何为子图设置本地节点?

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

Stack Overflow用户
提问于 2019-11-25 14:46:00
回答 1查看 29关注 0票数 0

在下图中,我想表示流程的“结束”:

下面是我的代码:

代码语言:javascript
复制
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子图中放置了两个'end‘节点。如何通过子图将2个'end‘节点与通过DOT连接的节点分开?或者,是否有其他方式来表达相同的概念?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-11-25 17:18:37

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

代码语言:javascript
复制
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]
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59026504

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档