Itoo Software Forum

Author Topic: Penetrating to target Numeric Node on multiple RC Objects in the scene  (Read 613 times)

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Hi
I guess it is possible but I lack 3DS Max knowledge to accomplish the task.

I`m working on a project with 6000+ windows and with over 10 Window Style types.
Since all my window Styles are based on the same Macro Creator but I use Multiple RC Objects all may parameters have the same Name eg. Handle on/off (boolean) or Hinges on/off (boolean).

I want to penetrate to target Numeric Nodes on multiple RC Objects in the scene and change them all at once eg. Hinges on/off = 0
I know I can access via Script eg. paintval (int array): value for parameters of type Integer, but this will access only parameters in the Main Parameters Menu and I want to go deeply into all the way to the Macro Level. Then again I`m not sure if this is even possible since many parameters have the same name through Macro`s levels/nesting.

Maybe to create a Script to extract all parameters as a "List Tree" (showing level/nesting structure) with an active field box for changing values.    8)


Regards
Dragan

« Last Edit: July 17, 2022, 01:26:05 AM by Dragan »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Hello Dragan - to the best of my understanding, the style editor isn't available to Maxscript so you'd need to export the parameters you need to change to the modify panel.

Not ideal I know, but it's a limitation of using a separate editor.

Cheers,
Paul
Paul Roberts
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Thank you, Paul.
Not a big problem to expose all parameters but the list will become long end unnecessary for the end user.
Maybe to beg Carlos to create special routine to access parameters inside Editor via some sort of list or filtered by the name, type, nested level...
« Last Edit: July 18, 2022, 01:23:37 PM by Dragan »

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4396
    • iToo Software
Dragan, that would be rather complex.
Not only to implement a way to access each one of the parameters and nodes from Maxscript (which are stored in a XML, separated from the Max data structures), but also how to identify them. As you pointed out, names are not unique.
Carlos Quintero
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Thank You, Carlos, I understand completely.
My knowledge of any programming/scripting equals 0, so I don`t know if any routine would be rather complex or simple.
For this, I imagine getting a graph list similar to Windows Explorer.
Master Generator1:
   -par1
   -par2
   -par3
 Master Generator2:
   -par1
   -par2
   -par3
        Nested1:
               -par1
               -par2
               -par3
               Nested2:
                      -par1
                      -par2
                      -par3
Master Generator3:
   -par1
   -par2
   -par3

... etc..

Then filter by name (isolate all par with the same name): par2 = value

I`m aware of the potential complexity of whole list but it could help to manipulate for advanced usage.

But ditch this and keep up the good work (for Nested reset on Splinestart)!!!  ;)   THANK YOU!!
« Last Edit: July 18, 2022, 02:04:00 PM by Dragan »

Dragan

  • Hero Member
  • *****
  • Posts: 1419
which are stored in a XML, separated from the Max data structures

Where is stored this XML and could it be accessed and actively edited?

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4396
    • iToo Software
which are stored in a XML, separated from the Max data structures

Where is stored this XML and could it be accessed and actively edited?

It's stored internally. There is no way to access it from Max.

Carlos Quintero
iToo Software