Notifications
Clear all

[Closed] is there any camera before loading file

seams to be easy, but still couldn’t find. How to detect, Is there any camera in a file without loading it?

2 Replies
1 Reply
(@miauu)
Joined: 11 months ago

Posts: 0

Read the names of the objects in the file and search for “cam” or “camera” in their names. Not 100% correct method, but…


getMAXFileObjectNames()

Or:

http://forums.cgsociety.org/showthread.php?f=98&t=894633&page=1&pp=15

http://forums.cgsociety.org/showthread.php?t=506306

http://forums.cgsociety.org/showthread.php?t=1138696

Yes, that’s not 100% unfortunately, but better then nothing. Thank you so much!