PDA

View Full Version : python function in expression


stretched
09-13-2010, 09:08 PM
hello,
using python function in expression editor decreases maya playbackspeed, even with basic computation. for example;

import maya.cmds as arf
slPrt=arf.ls(sl=True)

def durdur():
arf.setParticleAttr(slPrt, at='velocity', vv=(0,0,0))

and in expression editor
python("durdur()");

well it works but very slowly. am i doing something wrong? my particles connected to gravity all of them fall down except selected ones. but selected particles also going down with small amount of distance. like 0,5 unit. solution must be very easy :rolleyes:

http://forums.cgsociety.org/attachment.php?attachmentid=156300&stc=1

CGTalk Moderation
09-13-2010, 09:08 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.