Dynamic Fields in editor
by Jacob · in · 01/01/2005 (4:49 pm) · 4 replies
I was trying to change the color of one of my USL's in the editor - not the SG Light Editor but the Torque editor and none of my changes had any effect, even after a complete relight. I can change it in the SG Light Editor but the sliders aren't as precise as typing in the numbers. Aren't changes in the Dynamic Fields supposed to have an effect?
About the author
#2
img.photobucket.com/albums/v314/gloryiam/Torque%20Screenshots/SP32-21.jpg
The dynamic fields above were not added by me in the Inspector.
01/02/2005 (7:16 am)
Hi John, I understand what you are saying about the World Editor Inspector - that's what I was using - but for some reason I get a bunch of dynamic fields in one of my USLs, see link to screen shot below. This is the only USL that has these and I posted the original question while having only this one USL in my mission. After posting, I created more USLs and none of those had the dynamic fields anymore...img.photobucket.com/albums/v314/gloryiam/Torque%20Screenshots/SP32-21.jpg
The dynamic fields above were not added by me in the Inspector.
#3
Generally the naming convention I use is 'sgDatablock' for datablocks and 'sg' for objects. Adding 'Datablock' to the names will prevent object and datablock names from overlapping.
01/02/2005 (10:35 am)
It looks like the object's name is currently or was at one time also used by a datablock. The Light Editor references datablocks by name, so if an object and a datablock are named the same thing Torque could become confused and start editing the object's parameters, because the object doesn't have the same parameters they will appear as dynamic fields.Generally the naming convention I use is 'sg
#4
How do i define a dynamic variable in dynamic fields?
10/29/2007 (12:46 am)
I am new to Torque, and am following another guide from the site.How do i define a dynamic variable in dynamic fields?
Torque Owner John Kabus (BobTheCBuilder)
I'm not sure I understand the question what editor are you using?
The Light Editor edits light datablocks, which actually contain the lighting variables and are shared among multiple light objects. Torque's World Editor Inspector edits objects, not datablocks, so adding dynamic fields to the light objects via the World Editor Inspector won't change the lighting parameters.
You can edit light datablocks using the console with:
Example:
sgGooDataBlock.Radius = "10";
...but you still need to open the Light Editor and save the changes otherwise the original values will be restored on the next level load.
-John