instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 24, 2018, 01:19:11 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: How are attribute changes handled  (Read 1219 times)
Pellaeon
Newbie
*
Posts: 16


View Profile
« on: March 06, 2014, 11:22:05 am »

Hi,

I use scripting to change sphere attributes at runtime, e.g. the transparency and the scale factor of the parent transform node.

my_group.children.translation = particle_position_container[0];
my_group.children.children[0].appearance.material.transparency = 0;
my_group.children.scale = new SFVec3f(0.1,0.1,0.1);

My problem is that I have curious effects of popping spheres and wrong colors and so one. Therefore my question:

When I set attribute of nodes within my script functions, will these attribute be changed immediately? Or does the script only pushes the new values via routing to a buffer and the property change follow later in an asynchronous fashion? And is there a difference between EventIn and ExposedField variables?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines