Adverti horiz upsell

jlCollisionDeformer 0.9.6 for Maya (maya plugin)

A simple collision deformer for polygonal objects

License
Button download
9,306 Downloads

Compatibility

  • 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009, 2008

Operating Systems

  • Linux
  • Mac
  • Windows

History

Created:09/25/2010
Last Modified:04/08/2016
File Size: 6.34 KB

Bugs

Error: IndentationError: unexpected indent

Statusclosed
Prioritylow
Date09/26/2010
Submitted bytristratos tristratos
After installing the sript and plugin in the folders mentioned (AETemplates and plugins dir respectivelt) I tried to test out the plugin of yours (under Maya 2011/ Windows7 64bit)

I loaded up the plugin (worked fine) and created to sample polygon spheres seperated from each other.
Selected them both (one after the other) and executed the command mentioned

import maya.cmds as cmds

sel = cmds.ls(sl=True, type='transform')

collider = sel[0]

traget = sel[1]

collidershape = cmds.listRelatives(collider, s=True)

collisiondeformer = cmds.deformer(traget, type='jlCollisionDeformer', n='collisionDeformer' )

cmds.connectAttr(collidershape[0]+'.worldMesh[0]',collisiondeformer[0]+'.collider')

cmds.connectAttr(collider+'.matrix',collisiondeformer[0]+'.colliderMatrix')

cmds.connectAttr(collider+'.boundingBox.boundingBoxSize',collisiondeformer[0]+'.colliderBBoxSize')



All I get after this is the following error:

# Error: IndentationError: unexpected indent #


Which makes it unable to make any use of it.

Is there something that I am doing wrong, OR there is a known bug that needs to be fixed.
Please help

Comments on this bug:

  • tristratos

    tristratos said over 14 years ago:

    Forgot to mention that it is Maya 2011 with Hotfix 3 Any clue ?
  • Jan Lachauer

    Jan Lachauer said over 14 years ago:

    please check the last line of the script, you got a break in it. it should be: cmds.connectAttr(collider+'.boundingBox.boundingBoxSize',collisiondeformer[0]+'.colliderBBoxSize') also keep in mind that python is format sensitive, perhaps there are some redundant whitespaces, tabs ot breaks in the script you are executing (happens easily when copy-pasting python script)
  • Jan Lachauer

    Jan Lachauer said over 14 years ago:

    added a .mel file to the zip that makes it easier to assign the deformer. Check readme!

Post a comment: