|
stevew
|
stevew
Posted 3 Years Ago
|
|
Group: Forum Members
Last Active: Last Year
Posts: 245,
Visits: 1.2K
|
ret = propGlasses.SetVisible(RLPy.RTime(10000),true) print(ret) I am able to get the glasses in the scene and positioned but I get className error when setting to visible.
What I am missing here please.
|
|
videodv
|
videodv
Posted 3 Years Ago
|
|
Group: Forum Members
Last Active: 2 Years Ago
Posts: 342,
Visits: 12.0K
|
You have the set visible time to 10000 I think default is 8000 so try and set the time to say 1000 as a test. Hope it helps
|
|
stevew
|
stevew
Posted 3 Years Ago
|
|
Group: Forum Members
Last Active: Last Year
Posts: 245,
Visits: 1.2K
|
I’ll try later. I thought this setting was the time when the visibility would be set to true or false ?
|
|
stevew
|
stevew
Posted 3 Years Ago
|
|
Group: Forum Members
Last Active: Last Year
Posts: 245,
Visits: 1.2K
|
SetVisible ( self, kTime, bVisible )Set the prop's visibility at a given point in time. Parameters- kTime [IN] Specifies the time to set visible - RTime
- bVisible [IN] Visible status - bool
Returns- Success - RLPy.RStatus.Success
- Failure - RLPy.RStatus.Failure
1 prop = RLPy.RScene.FindObject(RLPy.EObjectType_Prop, "Box")2 ret = prop.SetVisible( RLPy.RTime( 67 ), false )3 print(ret)It sounds like I have a import missing ????
|
|
stevew
|
stevew
Posted 3 Years Ago
|
|
Group: Forum Members
Last Active: Last Year
Posts: 245,
Visits: 1.2K
|
Found the error. I had false instead of False
Not a very good error message 😞
|