[Closed] CA Def as floater
Can you launch a CA def on an attribute holder temporarily as a floater window? Im sure i’ve read this before…
Sure. Just set the spinner’s controller to be the same as the CA’s controller.
yes you can, the only limitation is that only one instance of a rollout can be opened once at a time, so the rollout can not be visible in the modify panel or material editor when you open it as a dialog or add it to a rolloutfloater
here’s how you do it:
lets say you have a ca called “myParams_ca” with a rollout “main_rlt” on the base object of the currently selected object
you can do this to open the rollout in a dialog:
createDialog $.myParams_ca.main_rlt
you can even put this funcionality into the ca itself.
let’s say you have a button launchFloater_btn in the aforementioned ca, use this code:
on launchFloater_btn pressed do
(
max create mode
createDialog this.main_rlt
)
furthermore, you could put something in the ‘on close’ handler of the rollout, so when you close the dialog, the modify panel is reactivated and the baseobject, or modifier, with the ca is selected
you could if you only had spinners on the CAdef, I have sliders and buttons that i wish to display.
We did have a long discussion about this, I wonder if it has rolled off the bottom yet. I was trying to find away around having only one instance of it. A real pain.
That’s the one i remember! i reckon it has as i searched through your posts and couldn’t find it.