Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / how i can add particle Dynamic attribute?
  RSS 2.0 ATOM  

how i can add particle Dynamic attribute?
Rate this thread
 
32747
 
Permlink of this thread   Subscribe to this thread
avatar
  • dodoer
  • Posted: 04 August 2009 03:40 AM
  • Total Posts: 3
  • Joined: 01 March 2007 10:50 PM

how i can add particle Dynamic attribute? like radiusPP,parentU,parentV.

thanks



Replies: 0
avatar

imitating the commands when one adds per particle attrs through the UI:

import maya.cmds as cmds
cmds.addAttr("|particle1|particleShape1", ln = “radiusPP”, dt = “doubleArray” )
cmds.addAttr("|particle1|particleShape1", ln = “radiusPPO”, dt = “doubleArray” )



Replies: 1
/img/forum/dark/default_avatar.png

thank you,i know,
the particle dynamic attr,like objcet attr add,
cmds.addAt’tr(’objcet’,in=’attrname’,dt=’string’)
cmds.setAttr(’objcet’,radius=’1.5’,e=’True’)

Author: dodoer

Replied: 04 August 2009 12:58 PM  




   
  Settings Choose Theme color: