Notifications
Clear all

[Closed] CameraMap to 1000 objects script

Hey guys.
How would one write a script that does this?

  1. Find every object named, lets say, Fragment01-1000
  2. Add a Camera map modifier to every one.
  3. In the Camera map modifier choose a named camera.
  4. Collapse every object into a poly object.

I know its probably not a challange to some of you but since im not a scripter Im having a hard time getting it right.

I would have used a instanced camera map but the camera needs to be pick for every object and thats just way too time consuming…

Thanks in advance.

2 Replies

something like this?

for obj in Geometry where classof obj == Editable_Mesh or classof == Editable_Poly do

(

select obj

modPanel.addModToSelection (CameraMap ()) ui:on

obj.modifiers[1].cameraNode = $Camera01

macros.run “Modifier Stack” “Convert_to_Poly”

)

That seems to do the job!
I owe you one. Would have taken an extra day at least.
Thanks!