Author Topic: Corona Select Material / Map Maxscript  (Read 716 times)

2022-10-16, 13:02:59

electricism

  • Active Users
  • **
  • Posts: 5
    • View Profile
Hi all,

Looking for some help with the Corona Select Material & Select Map.

I have a project where I need to animate between the material slots of corona select Materials & Maps. I know the only way to select a material slot over 25 is by using the maxscript:

rootScene[#SME][#View1][#MatName____CoronaSelect].SMENodeAttr.reference.selected = 0

Is there a way of changing this script so that it uses the currently selected Corona Select Mtl/Map so that you don't have to manually change the material name each time? I'd also like to be able to change the selected slot number by way of a dialog box rather than in the maxscript listener/editior.

So far I have tried to use this to inject the currently selected material but not having much luck:

sme.GetMtlInParamEditor()

I realise I probably haven't explained it too well but I will try and answer questions quickly. Thanks!
« Last Edit: 2022-10-16, 13:22:53 by electricism »

2022-10-17, 10:16:15
Reply #1

Frood

  • Active Users
  • **
  • Posts: 1920
    • View Profile
    • Rakete GmbH
Hi,

not sure if you need to use Maxscript here at all. You can use a controller to select the map/material slot and animate the controller.


Good Luck



« Last Edit: 2022-10-17, 11:08:40 by Frood »
Never underestimate the power of a well placed level one spell.

2022-10-17, 10:57:18
Reply #2

electricism

  • Active Users
  • **
  • Posts: 5
    • View Profile
Magnificent - thanks!