Announcement

Collapse
No announcement yet.

Physical Camera Scripting Issue

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

  • Physical Camera Scripting Issue

    Code:
    newCam=VRayPhysicalCamera transform:TM isSelected:on targeted:true specify_focus:true target_distance:150 focus_distance:150 film_width:36 focal_length:35
    $.targeted=false
    $.targeted=true
    The creation of the camera happens properly: it becomes selected, and all the menu options for it are correct, but the target is not present in the scene, at all, and the target distance spinner takes the correct parameter, but it's greyed out (notice the camera does show as targeted)

    It is sorted by simply toggling the "targeted" parameter on and off, or generating the camera with "targeted:false" and then later turning it on.

    Nothing major, but i thought i'd point it out.

    Lele

  • #2
    Does this work with a standard camera?

    The target is created as part of the camera creation when the user clicks the mouse; however the camera has no way of immediately creating the target if it is created from maxscript.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      you're right, same behavior from the standard camera: and same way of fixing it.
      Bug was in my head
      Lele

      Comment

      Working...
      X