Announcement

Collapse
No announcement yet.

postTranslatePython overrided in command line

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

  • postTranslatePython overrided in command line

    Hi,
    When i set the attribute postTranslatePython in command line like :

    Code:
    setAttr -type "string" vraySettings.postTranslatePython "blabla";
    The code is overrided by the UI...
    www.deex.info

  • #2
    Can you show your full command line? In any case, in the V-Ray parameters you can just source an external Python file - then you can simply modify that.

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

    Comment


    • #3
      Originally posted by bigbossfr View Post
      Hi,
      When i set the attribute postTranslatePython in command line like :

      Code:
      setAttr -type "string" vraySettings.postTranslatePython "blabla";
      The code is overrided by the UI...
      After the line you already wrote, you need to also type this :
      scrollField -edit -text "blabla" vrayPostTranslatePythonCallbackControl;

      Comment


      • #4
        Originally posted by vlado View Post
        Can you show your full command line? In any case, in the V-Ray parameters you can just source an external Python file - then you can simply modify that.

        Best regards,
        Vlado

        The command line is (it is PyMel) :
        Code:
        import arsenal.arsenalFunction;
        reload(arsenal.arsenalFunction);
        arsenal.arsenalFunction.arsenalFunction();

        Originally posted by alainfx View Post
        After the line you already wrote, you need to also type this :
        scrollField -edit -text "blabla" vrayPostTranslatePythonCallbackControl;
        Yep, i will add this :

        Code:
        setAttr("vraySettings.postTranslatePython", toAdd, type = "string")
        if control( "vrayPostTranslatePythonCallbackControl", query=True, ex = True):
            scrollField("vrayPostTranslatePythonCallbackControl", edit = True, text = toAdd)
        Thanks, now it is working.
        www.deex.info

        Comment


        • #5
          Hi!

          I don't know, if this is the right thread, but I'd like to give it a try.

          I want to assemble a standard render command line like

          render.exe -s 123 -e 456 myscene.mb

          Is there a way to parse an override for the post translate script to this? I didn't get the point from reading the posts below, sorry. Any help is appreciated, thank you!

          EDIT: Nevermind, got it.
          Last edited by pechart; 19-01-2012, 11:21 AM.

          Comment

          Working...
          X