PDA

View Full Version : help setting Particle Shading with Mel


MirrorSword
07-02-2009, 02:51 AM
Hi this is my first time posting on CGTalk.

I'm trying to write a mel script to set the shading type and shading attributes for an nParticle Shape node. what I'm trying to do is something like this.
setAttr nParticleShape1.particleRenderType 6; //sets the render type as streaks
setAttr nParticleShape1.lineWidth 10;
unfortunately this returns the error message:
// Error: line 2: No object matches name: nParticleShape1.lineWidth //

I belive this is because a nParticle shape node does not have a lineWidth attribute untill it's Particle Render Type is set to be Streaks. However I don't know how to get around this problem. so I though I would ask to see if any one here has run into this problem and knows how to deal with it.

CGTalk Moderation
07-02-2009, 02:51 AM
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.