|
Post by thanapooms on May 3, 2012 23:36:25 GMT -5
Hi current version miarmy 1.2.5 circle and polygon placement still not available right?
I just wonder that Is circle placement can make all agent look into center or move away from circle? I am work on test project that need all agents look inside center. how can i archive this layout?
I try to use placement on crv but all agents look into same direction. which is not what i want.
if circle placement can do arc curve,have attr that can do partial of circle,set up column row , control all agents to look into center or away from center, can do random orientation so we can set up people in arena of stadium easily than use custom placement that require python script
|
|
|
Post by Yeah YANG on May 4, 2012 5:43:16 GMT -5
Thank you for your question, Sorry, no, they are not available now, it will coming in next month. We have inverse placement tool, which you can firstly use "spot.x" or "zone.x" logic to make all agents turn to center and create an new place node by inverse placement from all the agents. (finally delete the old place node) By the way, we wrote a arena like placement, would you like to try this out and modify something, we hope can achieve your current needs: import math import maya.cmds as mc for i in range(5000): col = i % 150 # x row = i / 150 # y stri = str(i) mc.setAttr("McdPlace3.placement[" + stri + "].agentPlace[1]", col * 20) # x mc.setAttr("McdPlace3.placement[" + stri + "].agentPlace[2]", row * 15) # y mc.setAttr("McdPlace3.placement[" + stri + "].agentPlace[3]", -1 * row * 50) # z for i in range(5000): col = i % 150 # x row = i / 150 # y theta = float(col) / 150.0 * 1.5708 # half PI stri = str(i) rInit = 1800 rIncrease = 50.0 posX = (rInit + rIncrease * row) * math.cos(theta) posZ = (rInit + rIncrease * row) * math.sin(theta) mc.setAttr("McdPlace2.placement[" + stri + "].agentPlace[1]", -1 * posX) # x mc.setAttr("McdPlace2.placement[" + stri + "].agentPlace[2]", row * 15) # y mc.setAttr("McdPlace2.placement[" + stri + "].agentPlace[3]", -1 * posZ + rInit ) # z mc.setAttr("McdPlace2.placement[" + stri + "].agentPlace[5]", - 1 * theta * 57.2958 + 90 ) # ty Hi current version miarmy 1.2.5 circle and polygon placement still not available right? I just wonder that Is circle placement can make all agent look into center or move away from circle? I am work on test project that need all agents look inside center. how can i archive this layout? I try to use placement on crv but all agents look into same direction. which is not what i want. if circle placement can do arc curve,have attr that can do partial of circle,set up column row , control all agents to look into center or away from center, can do random orientation so we can set up people in arena of stadium easily than use custom placement that require python script
|
|