Copy ORA Get a new Panel Aspect

Post Reply
User avatar
clintonman
Captain
Posts: 5594
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Copy ORA Get a new Panel Aspect

Post by clintonman »

ORAcopyNewPanelAspect.jpg
This is interesting. A new panel aspect is created when you copy a node.

Code: Select all

Node.Create("Space 3D Package/Object Render Attributes", Space.CurrentScene());
1. run this code
2. result is the Object Render Attributes node on the left, has aspects Exp and Default
3. copy the node and it changes the Default aspect as shown and adds an Advanced aspect
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5465
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Copy ORA Get a new Panel Aspect

Post by trueBlue »

Bazar!
tS must be getting the copy from the preojects folder
Copy from preobjects.png
User avatar
clintonman
Captain
Posts: 5594
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Copy ORA Get a new Panel Aspect

Post by clintonman »

trueBlue wrote: 15 Sep 2024, 16:11 Bazar!
tS must be getting the copy from the preojects folder
Copy from preobjects.png
I think so too. The image I show above is from non-UU tS.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5465
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Copy ORA Get a new Panel Aspect

Post by trueBlue »

Just noticed that the Copy does not include the Object_Name attribute which is included and assigned in the UU in the preobjects folder

The LMB button code (Enter object name) needs to be updated in the UU

Code: Select all

if(!Node.ConExists("%THIS_NAME%", "Object_Name")){
Node.ConCreate("%THIS_NAME%", "Object_Name", "string", 4);
}
try
{
Node.Value("%THIS_NAME%", "Object_Name") = Node.ShortName(Node.Owner("%THIS_NAME%"));
}catch(exception){
Node.Select(Node.FirstSelected());
}
Post Reply