View Full Version : python scripting mr proxies

09 September 2010, 03:49 PM
anyone ever tried to script a proxy?

import maya.cmds as mc

currSel = (sl=True, l=1, dag=1, type='geometryShape')

for i in currSel:
mc.evalDeferred('mc.setAttr(i + ".miProxyFile", "assets/asset_output/koshijawa_slumHouse_A.mi", type="string")')

It doesn't work as expected.. when scripting it - the boundingbox does not scale up proberly.
but If I click once in the field and then resource the script.. the one object which I clicked into the miProxyFile field get's scaled up.
and actually wrongly jumps to the origin which is totally stupid and doesn't make sense for me.
is this a nother bug in 2009 osx?
shouldn't it work like, scattering cubes first and then assigning proxies to the cubes and hit render...!?!

please help.
can't get along with the project without having proxies.


09 September 2010, 04:11 PM
nevermind crappy maya.

it seems it is intended to load the proxy first then duplicate, parent constraint the object to all other cubes where' the renderstats got turned off.
which I managed to do with a script.
stupid but working

CGTalk Moderation
09 September 2010, 04:11 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.