Announcement

Collapse
No announcement yet.

Create FStorm Camera from View

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    Originally posted by Sylk View Post
    No error, just bad coding. If for you, create camera from view is just put a camera to origin in the scene then yes it works. But for me it means create/move a camera to the view position, orientation and fov of the current view in the selected viewport, and this is what my script do.
    Try my script and see.
    that's exactly what my script do, I don't get what are you missing, is easy look, this is what I'm telling you, "my script always create a camera from view port" if I it only created a camera in the origin I wouldn't be telling you (multiple times by the way) that it works! I would be telling you: "please help me make it work, because it do not works!!"

    so if the only thing my script do in your case is to create a standard camera in the origin, (0,0,0 ??) there have to be some error/s

    now could you help me to understand what could be happening that in my case it works fine, and in your case it only creates a camera in the origin? have you tried and saw that this is the behavior or just read the code?

    Comment


    • #47
      This is what i get, see pic. And it's exactly what your code ask ( FStormCamera pos:[0,0,0] ), so no error (for me an error is an error message), just bad coding. Also your "try catch" use makes no sense, its structure is not really logical. And it doesn't create camera if the view is camera.

      So no, your script doesn't work and does absolutly not what my script do.

      Try my script, and read how the code is simple and logical. And universal.

      Your bad is the use of try and the (macros.run "Lights and Cameras" "Camera_CreateFromView") command which not exist in 2017. Never use menu commands.
      Then the try test stop code don't execute this command, don't move the camera and just return "Do not works in ortographics views"... I'm in perspective view
      Last edited by Sylk; 12-15-2016, 09:40 PM.
      Software: FStormRender: 1.5.0h | Drivers NV: 456.71 | 3dsMax: 2020.3 | Windows: 10 x64
      Hardware: Gpu: GTX1080 Phoenix GLH | Cpu: i7-2600k@4.5GHz | Ram: 16GB | SSD: Samsung 860 Pro

      Comment


      • #48
        Originally posted by Sylk View Post
        This is what i get, see pic. And it's exactly what your code ask ( FStormCamera pos:[0,0,0] ), so no error (for me an error is an error message), just bad coding. Also your "try catch" use makes no sense, its structure is not really logical. And it doesn't create camera if the view is camera.

        So no, your script doesn't work and does absolutly not what my script do.

        Try my script, and read how the code is simple and logical. And universal.

        Your bad is the use of try and the (macros.run "Lights and Cameras" "Camera_CreateFromView") command which not exist in 2017. Never use menu commands.
        Then the try test stop code don't execute this command, don't move the camera and just return "Do not works in ortographics views"... I'm in perspective view
        ha!! YOU SEE! That's the error I was talking about!!! haha thank you man, the two pc I tried are running on 2015, where it seams this command still works

        as I'm not a programmer putting everything inside try catch is kind of a very quick way of doing things without crashing max/maxscript/the pc, no exaggerating here, when trying to create area lights I managed to blue-screen the PC not one but twice!

        Comment

        Working...
        X