MTLX to Editmaterial Properties --Losing specified ranges

   225   0   1
User Avatar
Member
59 posts
Joined: 1月 2016
Offline
Hey all, working on some procedural material generations.
ive created a paramter node within mtlx using python:


dispoutlow= matsubnet.createNode("parameter", mysel.name() + "_dispoutlow")
dispoutlow.parm("parmname").set("dispoutlow")
dispoutlow.parm("parmlabel").set("dispoutlow")
dispoutlow.parm("floatdef").set(-0.5)
dispoutlow.parm("rangeflt1").set(-1)
dispoutlow.parm("rangeflt2").set(.5)

this is the range I see on the parameter when i look at the python result.
However, if i used a edit material properties lop to expose this parameter downstream or in a different project file,
the parameter is there with the right defined value, but the ranges are 0-10 instead. How do I get this range to flow through properly?
Thank you!

Attachments:
floatrange_notworking.png (240.6 KB)

  • Quick Links