Notifications
Clear all

[Closed] a tool like light lister

Hi

I’m trying to program a rolloutfloater similar to the light lister, to keep track of cameras. I know how to create dynamic rollouts and such, but the problem is getting the connection between the different spinners, checkboxes, and edittexts to the corresponding cameras. I want the fov spinner inside the rollout to control the same controller as the fov spinner in the camera. They should be essentially the same spinner, and changing one will change the other. Any suggestions how to do that?

Using on pressed functions is too limited because it’s just uni-directional. Registering a ton of callbacks might be possible, but sounds like overkill. Is there a simple solution i have simply overlooked?

thanks in advance. David

5 Replies
 JHN

Spinners have the wonderfull property “controller” look it up, you can instanciate the controller property with any node controller provided it’s of a float type.

-Johan

ouch. how could I’ve missed that ?

But how about checkboxes, dropdownlists, edittextfields and colorpickers? they don’t seem to have this awesome controller feature.

 JHN

That’s correct, only eventhandlers can help you there. It won’t be pretty

-Johan

thanks for the honesty :). it’s going to get real messy, but i’ll figure it out.

Hi David,

I wrote an expansion to the scene explorer to handle cameras (and also lights btw)

http://www.just-joshing.com/2009/06/24/scene-explorer-expansion-pack/

It handles things like mm, fov, ranges, otho projection, show cone, show horizon. It works with standard cameras, VRay cameras, and Maxwell cameras.

If there are more columns that you would like then you could easily expand the code to cover what you want. Look in the file JN_sceneexplorer_add_camera_columns.ms in the script startup page, and read my comments to see how it can be done.

might not be what you want but it’s a different take on what you’re talking about.

J.