Announcement

Collapse
No announcement yet.

Scripting commands

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

  • Scripting commands

    Hi,

    I am looking to create a few scripts in Rhino. I am having issues locating commands/names for V-Ray. Some one suggested that the commands would be similar to 3ds max. How ever this is not the case as far as I can tell. In Rhino if I go to display object properties for a dome light it says the name [varies].

    Is there a command list or syntax for scripting within V-Ray for Rhino?

    Thanks,

  • #2
    I didn't find a command list, but when I inserted a dome light--following up on your example--the Rhino command line echos "_visDomeLight". So I tried "Call Rhino.Command("_visDomeLight"). The V-Ray dome light object is a group of a surface and a point light. If you ungroup it, it breaks it. I don't know how you would access it's properties through RhinoScript. Do you just want to place it or do you want to adjust it's properties, too? What other V-Ray objects/properties are you trying to affect via a script?

    Comment


    • #3
      Hi,

      Thank you for your help. I am looking to add a dome light and adjust its properties such as light intensity and if possible HDR rotation.

      Comment


      • #4
        Hi,

        I can create a dome light with the command rhino command "_visDomeLight"; But how would I go about changing the light intensity? I tried "_light01.intensity=3 but nothing happens.

        Comment


        • #5
          Can anyone confirm if http://www.spot3d.com/vray/help/200R..._maxscript.htm works in Rhino? Is the scripting different? I cant seem to find any documentation like the above but for Rhino.

          Comment


          • #6
            Originally posted by JamesCutler View Post
            Can anyone confirm if http://www.spot3d.com/vray/help/200R..._maxscript.htm works in Rhino? Is the scripting different?
            YES, it's different. (that one it's MAX script).

            Comment


            • #7
              Standard RhinoScript is a VisualBasic language package. MAXScript is either a VC++ or .NET language, so they are not the same. However, you can also create plug-ins with the .NET, so the syntax would be the same. That said, I wouldn't even know where to start with .NET.

              Can you be more specific about what you want to do? Maybe there is a workaround.

              Comment


              • #8
                Originally posted by skysurfer View Post
                YES, it's different. (that one it's MAX script).
                I know its different, but I cant see any other page/resource like that for Rhino :/ Some have mentioned the commands would be the same across software packages. It is just the in between bits that would differ.

                Comment


                • #9
                  Originally posted by ledisnomad View Post
                  Standard RhinoScript is a VisualBasic language package. MAXScript is either a VC++ or .NET language, so they are not the same. However, you can also create plug-ins with the .NET, so the syntax would be the same. That said, I wouldn't even know where to start with .NET.

                  Can you be more specific about what you want to do? Maybe there is a workaround.
                  Thanks for the help. I think I have got what I need now between various resources. Shame its not all in one place

                  Comment


                  • #10
                    Mind sharing where you found what you are looking for?

                    Comment

                    Working...
                    X