Page 1 of 1

other node value

PostPosted: Mon Mar 18, 2019 3:46 am
by hidenori saito
Hello
How to refer to other connection node values ​​with Maxscript Snippet node
please teach me.

Re: other node value

PostPosted: Tue Mar 19, 2019 3:39 pm
by boomer
Hello,

What information are you looking for? Node selection from a child (ie downstream) nodes or some other information from other vexus nodes?

If you want you the node selection, select "Select Input Nodes" from the Code Paramaters section. Then in your MAX Script, you can refer to that selection as $

You you want to refer to other vexus nodes, that is not possible.

Re: other node value

PostPosted: Tue Mar 19, 2019 5:00 pm
by hidenori saito
Thank you for your reply.
I have attached a screenshot, but you can't do that?

Re: other node value

PostPosted: Tue Mar 19, 2019 5:18 pm
by boomer
Hello,

If you select the option "Select Input Nodes", then the nodes that were selected in the Selection Set are accessible using "$" - as shown in the attachment below:

Re: other node value

PostPosted: Wed Mar 20, 2019 3:59 am
by hidenori saito
Thank you for your reply.
I know that it can get the object name selected by $.
Unable to get the name of the selected set.

Re: other node value

PostPosted: Wed Mar 20, 2019 3:44 pm
by hidenori saito
I could do something I wanted to do using a custom node. :D

<node enabled="True" className="SelectionSetsPlus" virtualName="SelectionSetsPlus" image="script.svg" backgroundColor="RGBA(255,84,181,200)" isExpanded="False" action="custommxs">
<viewblocks isExpanded="False">
<rect width="112" y="0" x="0" height="48"/>
</viewblocks>
<inputs>
<item type="data" limit="0" name=""/>
</inputs>
<outputs>
<item type="data" limit="0" name=""/>
</outputs>
<attributeblocks isExpanded="1">
<attributeblock name="_Hidden_" isExpanded="False" action="default">
<attribute value="True" key="selectInputNodes" type="boolean" label="Select Input Nodes" action="default"/>
<attribute method="default" type="textbox" key="maxscript" label="Maxscript" action="default" value="

stringArray=filterString &quot;$:nodesets.value&quot; &quot;, &quot;
selectionSetsArray=#()

for j in stringArray do
(

append selectionSetsArray j
)

"/>
<attribute value="True" key="outputSelectedNodes" type="boolean" label="Output Node Selection" action="default"/>
</attributeblock>
<attributeblock name="Parameters" isExpanded="True" action="properties">

<attribute action="default" type="dropdownlist" items="Add, Filter, Replace, Subtract" key="selectiontype" label="Operation" value="Add" method="string"/>
<attribute action="default" type="textbox" key="nodesets" label="Names" value="" method="selectionsets"/>

</attributeblock>
</attributeblocks>
</node>

Re: other node value

PostPosted: Wed Mar 20, 2019 6:13 pm
by jokermartini
Could you explain in a little more detail what you are trying to achieve and then I can help you create the node you need.

Re: other node value

PostPosted: Wed Mar 20, 2019 7:24 pm
by hidenori saito
I think this is like houdini's ROP.
This tool has excellent traceability.

In addition to rendering, I think that you can do various things by combining multiple nodes instead of one node,
such as exporting and adjusting objects, but selecting objects alone was not enough.