Profile Picture

what are the other options for the GetControl parameter?

Posted By frank_461853 4 Years Ago
You don't have permission to rate!

what are the other options for the GetControl parameter?

Author
Message
frank_461853
frank_461853
Posted 4 Years Ago
View Quick Profile
Senior Member

Senior Member (491 reputation)Senior Member (491 reputation)Senior Member (491 reputation)Senior Member (491 reputation)Senior Member (491 reputation)Senior Member (491 reputation)Senior Member (491 reputation)Senior Member (491 reputation)Senior Member (491 reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 26, Visits: 98
i asked a question on here the other day but i susect i worded it wrong. 

in a plugin i am writing, in have the line 
 control = thisObject.GetControl("Transform")
what other options are there for the parameter of GetControl other than "Transform"?
i looked on the manual page but it doesn't tell you. i've found one or two various examples use other options but i am unable to find a concessive list or a way of finding one. 

the reason i ask is that in a scene i have created in iclone  some of the lights change intensity at certain keyframes. i wish to programmatically find what those keyframes are.
given that the lights do not physically move but only change in brightness 
 control = thisObject.GetControl("Transform") only retrieves the one key at frame 0 as no movement transformation occurs. 

if example. a light changes brightness three times at frames 600, 180 and  500
     thisObject = RLPy.RScene.FindObject(RLPy.EObjectType_Light, tObJect)
     thisObject.GetControl("Transform")
     key_count = control.GetKeyCount()


returns 1 as the light doesn't physical move, but only changes brightness
what i need is the parameter for  the GetControl function  where key_count = control.GetKeyCount() would in this case return three 
a complete list of options  for GetControl would be much appreciated too.
Thank you. 








Reading This Topic