Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Brief

Attribute proxy node can change agent attribute value when simulate, and replace(proxy) the value for

...

Please notice that the regular output sentences CANNOT change the agent maya (pre defined) attribute value.

 

...

Attribute Proxy Node

The first thing is create a attribute proxy node, this node contains 3 contents

...

For creating this type of node, we need click Miarmy > Knowledge Perception > Maya Attribute > Create Attribute Proxy Node

After creating we need link it to specific target and then add/edit the proxy attribute name and values.

...

Add/Edit Attribute in Proxy Node

The variable attribute operation need be done in the Variable Attribute Connection Editor, it located at Miarmy > Perception Knowledge > Variables Maya Attribute > Variable Attribute Proxy Linker

 We firstly need add the variable attribute name at the left column, in below sample. We added an "aaa" variableattribute, just by click the Add button and specify a name. Also you can delete the "aaa" variable attribute by select it and click "delete"

And then we need link this proxy node to "McdPlace1Shape" node and the Agent type "snake". For doing this, we just need select the contents in the right column and click the "<<< Add Link(s)" button, then the linked actual contents are in the middle column.

Image RemovedImage Added
(Left) variable attribute names, (middle) link to target, (right) agent type or place node name


After setting those up this, the agents which type is "snake" or the agents which placed from "McdPlace1Shape", these agents' variable attribute "aaa" will be proxy, and the value can be setup in the channel box


Image RemovedImage Added
The variable attribute aaa's proxy value is 8


Proxy Variable Attribute by Agent ID

Also you can specify an agent ID range for this proxy node, that is means you can proxy the agent variable attribute without the link and just use the ID of agents.

Use this Miarmy > Knowledge Perception > Variables Maya Attribute > Variable Attribute Proxy Manager 

Image RemovedImage Added
Agent proxy by global ID and Place ID


We still need add a variable an attribute name in the Variable proxy linker Attribute Proxy Linker and edit its value in the channel box before we use this tool.

Then we just need specify the agent ID range and the place ID.

Select the place node and open "show digit", can make the placement node show each one digital number on it

...


Also, select any one of the agent, you may notice that there are 2 IDs been displayed under the agent, the agent ID current place and the agent ID in global space.

This information can help you decide what number should be specified in the Variable Attribute Proxy Manger.

Id in place node and in global


In the below image, we specified 2 rules there:

  1. The agents which global agent ID from place node 1 and the ID in place is from 11 to 12(include proxy12) will be proxy.
  2. The agents which from place node 1 2 and the ID in place is from 5 to 6(include 6) will be proxy

...

Image Added

Image Removed
Agent proxy by global ID and Place ID

...

Attribute proxy


Sentences for Getting Value of Attribute

pre-defined maya attribute:?? value

input sentence return the value of variable attribute which name is <agent variable name><??>. such as avpre-defined maya attribute:aaa value > 15