Announcement

Collapse
No announcement yet.

Maxscript problems

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

  • Maxscript problems

    Hi.

    I just got new permissions so I can finally post in this section of forum. I'm posting link to post I made in Free forum.

    http://www.chaosgroup.com/forums/vbu...ems#post564635

    I hope you guys can help me.

    Thanks.

    BTW. If administrator could move/merge linked above post here it would be great.
    magic happens here... sometimes

    Twitter
    Vimeo
    Blog

  • #2
    I haven't tried this but a possible workaround might be using the '3dsmaxcmd -preset' switch to change the render settings. If you only want to change the VRay settings only save the 'V-Ray Adv' tab when you make your .rdp file otherwise it will mess up the settings in common etc.
    Dan Brew

    Comment


    • #3
      Well, problem is that this needs to be modified dynamically. I want to send this to renderfarm and some things will be generated by different nodes and than put together, I can't use presets because I want to have possibility to modify every aspect of RenderSetup dialog always. With preset you can't do this because files are binary so can't modify them from outside. Anyway, I got some answer from support and it looks that not "Don't render final image" not working with "-preRenderScript" is added to list of bugs.

      Any ideas how to solve second part of my question ?
      Last edited by mantragora; 06-11-2012, 01:31 PM.
      magic happens here... sometimes

      Twitter
      Vimeo
      Blog

      Comment


      • #4
        Originally posted by mantragora View Post
        Well, problem is that this needs to be modified dynamically. I want to send this to renderfarm and some things will be generated by different nodes and than put together, I can't use presets because I want to have possibility to modify every aspect of RenderSetup dialog always. With preset you can't do this because files are binary so can't modify them from outside. Anyway, I got some answer from support and it looks that not "Don't render final image" not working with "-preRenderScript" is added to list of bugs.
        Ok so presets aren't going to work for you, hopefully it will be fixed soon.

        Originally posted by mantragora View Post
        Any ideas how to solve second part of my question ?
        It's difficult to say without seeing your code.

        How are you changing the file extension in SplitRenderChannels? If you are simply changing the last 3 characters of 'renderers.current.output_splitfilename' then try passing a bitmap to the renderer using 'renderers.current.output_splitbitmap'.
        Dan Brew

        Comment


        • #5
          I've just had a quick play and this seems to work. Very crude but...
          Code:
          (
          	rollout changeOutput "Change File Extension" width:160 height:100
          	(
          		fn setImg fileExt =
          		(
          			local fPath = (getDir #renderoutput + "\\" + fileExt)
          			local bmap = bitmap 10 10 filename:fPath
          			save bmap quiet:true
          			renderers.current.output_splitbitmap = bmap
          			renderers.current.output_splitfilename = fPath
          		)
          		
          		button jpg_but "JPEG"
          		button png_but "PNG"
          		button tiff_but "TIFF"
          		
          		on jpg_but pressed do setImg "Test.jpg"
          		on png_but pressed do setImg "Test.png"
          		on tiff_but pressed do setImg "Test.tif"
          	)
          	createDialog changeOutput
          )
          Dan Brew

          Comment


          • #6
            See my reply here: http://www.chaosgroup.com/forums/vbu...861#post564861

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

            Comment


            • #7
              Originally posted by DanielBrew View Post
              Very crude but...
              ...it works.

              At least from those test I made. Thank you.
              magic happens here... sometimes

              Twitter
              Vimeo
              Blog

              Comment


              • #8
                You're welcome.

                Going back to the first problem, it's not too difficult to write .rdp files dynamically. Have a look at 'renderpresets' in the mxs help.
                Dan Brew

                Comment

                Working...
                X