PDA

View Full Version : CA Def as floater


LoneRobot
10-04-2006, 09:03 AM
Can you launch a CA def on an attribute holder temporarily as a floater window? Im sure i've read this before....

davestewart
10-04-2006, 06:29 PM
Sure. Just set the spinner's controller to be the same as the CA's controller.

Aearon
10-04-2006, 08:31 PM
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

sethwolford
10-04-2006, 08:55 PM
couldnt you use the parameter collector for this ?

LoneRobot
10-04-2006, 08:55 PM
Thanks guys, that is just what i was after.

LoneRobot
10-04-2006, 08:58 PM
couldnt you use the parameter collector for this ?

you could if you only had spinners on the CAdef, I have sliders and buttons that i wish to display.

PEN
10-04-2006, 10:58 PM
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.

davestewart
10-05-2006, 08:00 AM
Very cool.

LoneRobot
10-05-2006, 10:56 AM
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.

CGTalk Moderation
10-05-2006, 10:56 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.