Sorath
09-22-2010, 03:49 PM
anyone ever tried to script a proxy?
import maya.cmds as mc
currSel = mc.ls (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.
thanks
Bastian
import maya.cmds as mc
currSel = mc.ls (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.
thanks
Bastian
