  | | | set has restrictions on membership? | set has restrictions on membership? 2003-11-28 - By garyc
Back Hi, I have setup a script at work that automatically links a number of [active rigidBody] objects to various forces depending on their velocity, which is all working fine. Now I thought that it would be a good idea if for illustrative purposes that I changed the shader on each rigidBody object depending on what they are linked to (i.e. green=gravity, blue=turbulence etc.)... my problem is that I am running the checks on the objects as an expression on a frame by frame basis, therefore each time an objects changes whats its linked to (and a change the shader) I am getting the following warning message, which is starting to slow things down as it spools up endlessly in the script editor. sets -e -forceElement phong1SG; // Warning: Cannot add the following items to the set since the set has restrictions on membership: rigidBody2 // // Result: phong1SG //
Does anyone know how (a) I can assign a new shader to my rigidBody objects without getting this message (funnily enough you don`t get the warning if you drag and drop) or (b) some what that I can surpess the warning.
cheers in advance gary. --- Gary Coulter Pixel Engineering . Fuzzygoat Ltd. Shepperton Film Studios, UK. www.fuzzygoat.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|
 |