lxdengar
05-10-2007, 06:46 PM
Hi All,
I tried looking through the forum before I asked these questions, but couldn't find the answer to my question. I appreciate the help.
I have a UI built, which creates and manipulates particle systems (changes amount, speed, adds fields etc). I have a delete button which correctly deletes the emitter and various systems, and rather than have the user close the window to recreate the system, I added a button for it.
The new system gets correctly created from my main proceedure, but the window values/sliders in the dialog window remained greyed out. Despite the system nodes being named the same, it looks like window doesn't recognize the new system. Closing the window and calling it again allows the system to be manipulated! I assume this is just a window refresh, but I can find anything in the mel reference about doing this.
***
Secondly, I'd like the user to be able to pick a mesh to emit particles from, and using size() and a selection array I can limit the selection to one object, but is there a way to test what kind of object it is? I assume that many, many people have done this before, so I was curious if anyone could point in the right direction. I did find
if (`nodeType ($item)` == "mesh")
But I'm sure there's more i could be checking.
Thanks for the help!
I tried looking through the forum before I asked these questions, but couldn't find the answer to my question. I appreciate the help.
I have a UI built, which creates and manipulates particle systems (changes amount, speed, adds fields etc). I have a delete button which correctly deletes the emitter and various systems, and rather than have the user close the window to recreate the system, I added a button for it.
The new system gets correctly created from my main proceedure, but the window values/sliders in the dialog window remained greyed out. Despite the system nodes being named the same, it looks like window doesn't recognize the new system. Closing the window and calling it again allows the system to be manipulated! I assume this is just a window refresh, but I can find anything in the mel reference about doing this.
***
Secondly, I'd like the user to be able to pick a mesh to emit particles from, and using size() and a selection array I can limit the selection to one object, but is there a way to test what kind of object it is? I assume that many, many people have done this before, so I was curious if anyone could point in the right direction. I did find
if (`nodeType ($item)` == "mesh")
But I'm sure there's more i could be checking.
Thanks for the help!
