other node value

Vexus related Support Questions
Post Reply
hidenori saito
Posts: 8
Joined: Mon Mar 04, 2019 3:56 am

other node value

Post by hidenori saito »

Hello
How to refer to other connection node values ​​with Maxscript Snippet node
please teach me.
boomer
Site Admin
Posts: 271
Joined: Fri Aug 11, 2006 9:03 pm

Re: other node value

Post 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.
Mathew Kaustinen
Boomer Labs
hidenori saito
Posts: 8
Joined: Mon Mar 04, 2019 3:56 am

Re: other node value

Post by hidenori saito »

Thank you for your reply.
I have attached a screenshot, but you can't do that?
Attachments
2019-03-20 07_53_57-Vexus 3.03B - [E__project_140529_demo_test3_script_vextest.vx]_.png
2019-03-20 07_53_57-Vexus 3.03B - [E__project_140529_demo_test3_script_vextest.vx]_.png (21.75 KiB) Viewed 8249 times
boomer
Site Admin
Posts: 271
Joined: Fri Aug 11, 2006 9:03 pm

Re: other node value

Post 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:
Attachments
Vexus_Selections.png
Vexus_Selections.png (36.11 KiB) Viewed 8248 times
Mathew Kaustinen
Boomer Labs
hidenori saito
Posts: 8
Joined: Mon Mar 04, 2019 3:56 am

Re: other node value

Post 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.
hidenori saito
Posts: 8
Joined: Mon Mar 04, 2019 3:56 am

Re: other node value

Post 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 "$:nodesets.value" ", "
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>
jokermartini
Posts: 32
Joined: Sat Sep 10, 2016 12:59 pm

Re: other node value

Post 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.
hidenori saito
Posts: 8
Joined: Mon Mar 04, 2019 3:56 am

Re: other node value

Post 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.
Post Reply