tyPreview over maxscript ignore some parameter
#1
The max script command "tyPreview" with parameter ignores or misinterpret some parameter

all previews are in wireframe by default

the following parameters of tyPreview leads to wrong output:
appearance_mode:1        possibly ignored, problem could be next parameter
appearance_style:1         ignored always wireframe
overlay_maxscript:true overlay_maxscript_script:"Supertext"          text ignored, output always "undefined"

3dsmax 2020 TF 0.1608
  Reply
#2
I'll look into the appearance settings.

As for the maxscript, it takes a string as the argument, yes...but the string is directly interpreted as maxscript, not a raw string. That allows you to specify variables in your script. If you want to pass a string directly, just use an extra set of quotes inside of escape characters. Ex:

Code:
"\"Supertext\""
  Reply
#3
Ok thanks a lot so far, my use case is that I'm using the tyPreview command inside a script and want to feed the "overlay_maxscript_script:" parameter with a variable from this "motherscript". Thanks to your insight I've got it to work with:
Code:
overlay_maxscript_script:("\""+stringvariable+"\"")

Please put a similar example into the documentation to clarify this matter and keep up the fantastic work. And thanks for tyPreview, you really know what is making 3dsmax users life miserable and step in to improve it. BIG THANKS !!! The inhouse workflow improvements induced by the previewer finally being scriptable are huge on my side.
  Reply
#4
(04-01-2020, 10:41 PM)tyFlow Wrote: I'll look into the appearance settings.
And did you find the faulty code with the appearance settings? Can I help you with anything? Like a 3dsmax scene or script?
  Reply
#5
It should all already be fixed in the next build Smile
  Reply


Forum Jump: