Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: Dragan on July 16, 2022, 11:40:15 AM

Title: Penetrating to target Numeric Node on multiple RC Objects in the scene
Post by: Dragan on July 16, 2022, 11:40:15 AM
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

Title: Re: Penetrating to target Numeric Node on multiple RC Objects in the scene
Post by: Paul Roberts on July 18, 2022, 12:35:11 PM
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
Title: Re: Penetrating to target Numeric Node on multiple RC Objects in the scene
Post by: Dragan on July 18, 2022, 12:56:28 PM
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...
Title: Re: Penetrating to target Numeric Node on multiple RC Objects in the scene
Post by: iToo on July 18, 2022, 01:41:58 PM
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.
Title: Re: Penetrating to target Numeric Node on multiple RC Objects in the scene
Post by: Dragan on July 18, 2022, 02:00:07 PM
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!!
Title: Re: Penetrating to target Numeric Node on multiple RC Objects in the scene
Post by: Dragan on July 18, 2022, 02:06:17 PM
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?
Title: Re: Penetrating to target Numeric Node on multiple RC Objects in the scene
Post by: iToo on July 19, 2022, 08:24:05 AM
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.