🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Custom Guidebar - How to request a nodelist from user

User: "SLadisch"
Altair Community Member

Description: In our own extension I built my own guide bar to request a node list. Is there a documentation for the definition of the guide bar inside a context xml?

How must this be changed to get/request a nodelist from user? In my example I tried to use "nodelist" but the gui shows a pure node selector.

<root>
<context tag="RodMeshCtx">
<guidebar tag="gb">
<item tag="nodesel" type="entityselector" defaultentity="Nodelist" selectionname="NodeSel" syncwithbrowser="false" hmselectionmode="append" entitytypes="Nodelist"/>
<item tag="rename_label" image="toolbarActionApplyStrip-16.png" command="hwctx proceed"/>
<item tag="ok" image="toolbarActionOKStrip-16.png" command="hwctx ok"/>
</guidebar>
</context>
</root>

Product/Topic Name : Hyper Mesh 2024.1 - Extensions

 

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "almeidaaap"
    Altair Employee

    Hi, SLadisch,

    We are working to provide more content related to the Custom_Context creation. So far, I can recommend these steps and workaround

    The Python context is a work in progress, but I hope this can clarify and help with structuring.

    The red box is my selector item with some selector options (nodelist, line, solid etc.), the green one is the name of the selection (I'll need it to call and run my .py script at the end).

    image.png

    As you can see below, I've called selectionname to run a script (it can be python, tcl, I'd recommend Python). In this case, it's just printing the ID of the nodes.

    image.png

    But, as you can see below (at least in my test example), it's only retrieving the selected nodes, not the list, even if it´s showing that it selected by list. So, as a workaround, I recommend pressing Alt + select the start and end position of the node (select by Path).

    image.png

    See the attached example, just to remind you that this is only an example.

    Regards,

    Arthur