Main Menu

reorder cameras

Started by andy.engelkemier, March 14, 2019, 03:39:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

andy.engelkemier

please add the ability to reorder cameras, just like models in the scene.

Working off a list in order, then someone asks to see a variation of camera 2 when you're done with camera 15? Now you get
camera 14
camera 15
camera 2b
camera 16
camera 17

I'd really like 2b to be next to 2a.
You wouldn't think it, but it happens more often that you'd think.

Will Gibbons

I can agree that this would be nice!

INNEO_MWo

It is a workaround, but studios with just activated camera enable this.
Haven't tried it yet, but isn't reorder of cameras available in the scene tree?

mattjgerard

Quote from: MWo on March 28, 2019, 12:25:08 PM
It is a workaround, but studios with just activated camera enable this.
Haven't tried it yet, but isn't reorder of cameras available in the scene tree?

Hey Marco, I tried setting up a studio with a  couple cameras, activated one in the studio and I didn't notice any difference. Trying to click and drag a camera in the camera tab list doesn't' work, just toggles through the cameras as you drag over them. Can't reorder in the scene tree either. This has been an ongoing wish for me, so I'm glad other people are requesting it too.

Maybe I'm missing something that you are doing?

INNEO_MWo

Hey Matt.

For example:
- create studio 1 that has camera 1 applied and nothing else
- create studio 2 with camera 2

Now you can re-order the studios in the list. And activating the studio sets the applied camera active.

That's all

Cheers
Marco

mattjgerard

I understand what you are talking about now. Might work in some cases, but still doesn't scratch my itch to have everything in order in the camera tab. Can reorder most everything else, so in my list of 20 cameras would be nice to be able to get them in order so they appear in the right order in the studio selection drop down. I am starting to use studios more and more for organizing stuff, but I still am picky about wanting to be able to shuffle cameras in the list as well.

Good option, though.

andy.engelkemier

There actually IS a solution...but you won't like it.

Go to camera 1, duplicate it
go to camera 2, duplicate it
you see where I'm going. Duplicate them all, in order

Now delete the originals

But is that Really something you want to spend 10 minutes doing?

jbeau

#7
Here's a script that does this but makes every camera, "Perspective".
Capitalization is first then alpha, followed by numeric.
IE: View, cam, shot, shot1

I don't think there is a function to getCameraLens, such as ortho and pano.

Use at your own risk, save file prior to running:)
# AUTHOR jbeau3d
# VERSION 0.0.1
#sort camera alphabetically by name

cameras = lux.getCameras()
cameras.sort()

for cam in cameras:
    #get camera data
    lux.setCamera(cam)
    camData = lux.getSphericalCamera(cam)
    camDis = lux.getCameraDistance(cam)
   
    print(cam, "is now active")
    print(cam, camData, camDis)

    #assign camera attributes
    az=camData[0]
    inc=camData[1]
    tw=camData[2]
    print(cam,"azimuth:", az)
    print(cam,"inclination:", inc)
    print(cam,"twist:", tw)

    #rebuild camera
    lux.removeCamera(cam)
    lux.newCamera(cam)
    lux.setCamera(cam)
    print(cam, "is now being set")
   
    #set camera attributes
    lux.setSphericalCamera(azimuth=az, incl=inc, twist= tw)
    lux.setCameraDistance(dist =camDis)
    lux.saveCamera(cam)