|
By terellrandolph - 2 Years Ago
|
Does anyone know why this line of code is giving me an error. It’s from the wiki page on how to move a prop
ts_data_block.SetData("Position/PositionX", RLPy.RTime(0), RLPy.RVariant(100))
|
|
By philipjie117 - 2 Years Ago
|
|
iClone 7 or iClone 8? What error it said?
|
|
By mrtobycook - 2 Years Ago
|
Probably because Time has changed so much in iClone 8. But I’d need to see more of the code.
The way that Time is explained in the documentation isn’t correct, to me anyway. I had to ignore the docs and write all my Time-related stuff blindly, because its so differently in iClone 8.
|
|
By mrtobycook - 2 Years Ago
|
The explanation is probably here, although even the examples on this page don’t work:
https://tinyurl.com/yeypuehs
But anyway, I’m not at my pc and I’m not sure which iClone version you’re using. Bottom line, in iClone 7 time used to be this:
X = RLPy.RTime(0)
And now in iClone 8 it’s:
X = RLPy.RTime.FromValue(0)
Then you if you want to print that variable you made, in iClone 8 you’ll need to convert it to an integer like this:
print( X.ToInt() )
|