Notifications
Clear all
[Closed] CameraMap to 1000 objects script
Mar 08, 2007 12:06 pm
Hey guys.
How would one write a script that does this?
- Find every object named, lets say, Fragment01-1000
- Add a Camera map modifier to every one.
- In the Camera map modifier choose a named camera.
- 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
Mar 08, 2007 12:06 pm
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”
)
Mar 08, 2007 12:06 pm
That seems to do the job!
I owe you one. Would have taken an extra day at least.
Thanks!