psilo
07-01-2011, 03:05 PM
Hi there,
i m strating to learn python , and i m facing a little problem with the setAttr command
This is the simple code :
Emit = cmds.emitter(typ="omni", n="DirtEmtr", r=100, sro=1, spd=2, srn=0.5, nsp=1)
Ptcl = cmds.particle(n="DirtPtcl")
cmds.connectDynamic (Ptcl , em=Emit)
i want to make a setAttr to change the speed value of the emiiter so i try :
cmds.setAttr (Emit+".speed",4)
and
cmds.setAttr ("%s.speed" %(Emit),4)
Both give me an error , and dont understand why. if someone ca help...
Thanks,
i m strating to learn python , and i m facing a little problem with the setAttr command
This is the simple code :
Emit = cmds.emitter(typ="omni", n="DirtEmtr", r=100, sro=1, spd=2, srn=0.5, nsp=1)
Ptcl = cmds.particle(n="DirtPtcl")
cmds.connectDynamic (Ptcl , em=Emit)
i want to make a setAttr to change the speed value of the emiiter so i try :
cmds.setAttr (Emit+".speed",4)
and
cmds.setAttr ("%s.speed" %(Emit),4)
Both give me an error , and dont understand why. if someone ca help...
Thanks,
