Announcement

Collapse
No announcement yet.

python callback question

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

  • python callback question

    sorry. I am not familiar with python.

    How does it describe to define the parameter (flip_x, flip_y, fov) of plug-in, after creating Plugin with a Create() function as follows?

    Code:
    from vray.utils import *
    
    create('CameraDome', 'perspShape')
    Please let us know.

    OakCorp Japan - Yuji Yamauchi
    oakcorp.net
    v-ray.jp

  • #2
    You can use the plgparams utility coming with V-Ray to inspect the parameters supported by all plugins.
    Here is an example for the CameraDome plugin
    Code:
    $ plgparams CameraDome
    Parameters for plugin 'CameraDome'
      flip_x: bool = false, Flip in the horizontal image direction
      flip_y: bool = false, Flip in the vertical image direction
      fov: float = 0.785398, Field of view (radians)
    Supported interfaces:
    The code for setting parameters should be something like:
    Code:
    from vray.utils import *
    
    plg=create('CameraDome', 'test')
    plg.set("flip_x", True)
    plg.set("flip_y", False)
    plg.set("fov", 0.6)
    Hope it helps.

    p.s. keep in mind that the name of the plugins doesn't match the name of the nodes in Maya.
    V-Ray developer

    Comment


    • #3
      Thanks for the info. It was very helpful.

      Thank you very much.

      OakCorp Japan - Yuji Yamauchi
      oakcorp.net
      v-ray.jp

      Comment

      Working...
      X