Announcement

Collapse
No announcement yet.

Scripting commands - Sintax

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

  • Scripting commands - Sintax

    Is there a help or reference file for writing scripting for V-Ray? A syntax or something with common commands. Also would it differ from software packages such as 3ds Max, Maya, Rhino 3D?

    Thanks,
    Last edited by ; 16-02-2012, 08:35 AM.

  • #2
    Maxscript itself is fairly loose, you can get away with quite sloppy code which is quick and accessible. Other programs use more strict languages which are similar to javascript so a bit more snotty about their syntax but still readable.

    Maxscript 101 - http://vimeo.com/album/1514565 is a course written by the creator of maxscript and a decent resource, there's also a lot of intro lessons in the maxscript online help with 3dsmax which will get you started.

    For vray stuff it's normal material and light parameters which normally go along the object.property = x or material.property = x lines, so for a vray light named vraylight01 it'd be vraylight01.multiplier = 30 or vraylight01.width = 10 and so on. For any physical vray object, if you select it and type "showproperties $" in the maxscript listener it'll give you a list of all the accisble parameters of that object. For the renderer, assign vray to be your production renderer and in the listener type "vr = renderers.current" to set a variable called vr to be whatever is our current renderer, then type "showproperties vr" to pull the same trick and get a list of all the accessible properties.

    Comment


    • #3
      thanks for the help, that's great. Any idea if the scripting would differ in other software packages? For example what I find in the maxscript listener, could I use this same V-ray properties in Rhino 3D?

      Comment


      • #4
        The commands are likely to be similar, but the actually language and coding format not so.

        Comment


        • #5
          Cool thanks, I am looking for Rhino commands specifically but I thought I would start here. I was hoping V-Ray commands would be the same across all software, its just the in between bits that would be different.

          Comment


          • #6
            Yep. I'd say the parameters are named the same but the actual structure of the language would be different.

            Comment


            • #7
              Thanks again, so is there no help file with all these parameter commands? Is typing in the Maxscript listener the only way?

              Comment


              • #8
                There's some stuff up for maxscript on spot3d, unfortunately I've no idea for rhino. Normally most apps would have some kind of basic rudown of how their language works, with all of the commands generally worknig the same way, so once you know one, you know most of them, type of thing.

                Comment


                • #9
                  Thanks I have seen the maxscript stuff on spot3d. I have also asked over in the Rhino section top see if any one knows. I am getting a few errors and I am not sure if its my Rhino scripting or the parameter commands being slightly incorrect.

                  Comment

                  Working...
                  X