Author Topic: Faster Triplanar Setup (Script)  (Read 405 times)

2019-09-10, 19:53:01

cjwidd

  • Active Users
  • **
  • Posts: 183
    • View Profile
    • Artstation
I would like to prepare a macroscript to address the issue described in this thread while we wait for an official implementation from the Corona team. Before I start asking implementation questions, does anyone have a script like this laying around that they would be willing to share?

I expect the script would:

1. Access a material with attached bitmaps
2. Insert a Corona Triplanar node to all bitmap attachments
3. Assign a bezier float controller to all Triplanar 'scale' parameters

It would be great to piggyback off some functionality for a script like this (ezMat for 3ds Max) to create an all-in-one texture / material import workflow.
« Last Edit: 2019-09-10, 20:02:34 by cjwidd »

2019-09-11, 23:30:53
Reply #1

cjwidd

  • Active Users
  • **
  • Posts: 183
    • View Profile
    • Artstation
My first question is whether there is any documentation that lists attributes that can be called from script for Corona nodes for Slate Material Editor, e.g. scale for triplanar node, as well as the triplanar node itself(?)

2019-09-12, 08:13:59
Reply #2

Frood

  • Active Users
  • **
  • Posts: 1308
    • View Profile
    • Rakete GmbH
The documentation is in the object itself. You can always do something like this in the maxscript listener:

Code: [Select]
apropos "triplanar"
-> CoronaTriplanar (const MAXClass): CoronaTriplanar

testmap=CoronaTriplanar()
showproperties testmap
->   .onlyTexmapX : boolean
->   .texmapX : texturemap
->   .texmapY : texturemap
->   .texmapZ : texturemap
->   .blend : float
->   .texmapBlend : texturemap
->   .texmapBlendOn : boolean
->   .space : integer
->   .scale : worldUnits
->   .offset : point3
->   .rotation : point3
->   .referenceNode : node
->   .colorX : RGB color
->   .colorY : RGB color
->   .colorZ : RGB color
->   .texmapXOn : boolean
->   .texmapYOn : boolean
->   .texmapZOn : boolean
->   .flipMappingOnBackside (Flip_mapping_on_the_backside) : boolean
->   .showFlipMappingUi : boolean
testmap.scale
-> 100.0
testmap.scale=50
-> 50

Hope this helps a bit,


Good Luck




Never underestimate the power of a well placed level one spell.

2019-09-12, 16:29:20
Reply #3

cjwidd

  • Active Users
  • **
  • Posts: 183
    • View Profile
    • Artstation
Yes it does, thank you so much!

2019-09-15, 20:36:30
Reply #4

cjwidd

  • Active Users
  • **
  • Posts: 183
    • View Profile
    • Artstation
More information can be found here


2019-09-16, 21:51:26
Reply #5

cjwidd

  • Active Users
  • **
  • Posts: 183
    • View Profile
    • Artstation
A support ticket has been logged with the Quixel live link engineering team to include this feature as an extension to Bridge.