https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RIClip&feed=atom&action=history
IC Python API:RLPy RIClip - Revision history
2024-03-29T07:10:32Z
Revision history for this page on the wiki
MediaWiki 1.26.2
https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RIClip&diff=4545&oldid=prev
Chuck (RL) at 02:25, 16 April 2020
2020-04-16T02:25:23Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 02:25, 16 April 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l15" >Line 15:</td>
<td colspan="2" class="diff-lineno">Line 15:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Member Functions ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Member Functions ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=== GetControl ( self, strKey , spNode ) ===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== GetControl ( self, strKey, spNode ) ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Get the transform control for a character's bone node or scene object according to the clip index.  At the present, only "Layer" is supported as the clip key.  If the character's skeleton bone node or the scene object does not have a clip or if the clip index is larger than the total number of clips, return '''None'''.  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Get the transform control for a character's bone node or scene object according to the clip index.  At the present, only "Layer" is supported as the clip key.  If the character's skeleton bone node or the scene object does not have a clip or if the clip index is larger than the total number of clips, return '''None'''.  </div></td></tr>
</table>
Chuck (RL)
https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RIClip&diff=4544&oldid=prev
Chuck (RL) at 02:25, 16 April 2020
2020-04-16T02:25:03Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 02:25, 16 April 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l15" >Line 15:</td>
<td colspan="2" class="diff-lineno">Line 15:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Member Functions ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Member Functions ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=== GetControl ( self, <del class="diffchange diffchange-inline">st[[IC_Python_API:RLPy_RKey|RKey]] </del>, spNode ) ===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== GetControl ( self, <ins class="diffchange diffchange-inline">strKey </ins>, spNode ) ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Get the transform control for a character's bone node or scene object according to the clip index.  At the present, only "Layer" is supported as the clip key.  If the character's skeleton bone node or the scene object does not have a clip or if the clip index is larger than the total number of clips, return '''None'''.  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Get the transform control for a character's bone node or scene object according to the clip index.  At the present, only "Layer" is supported as the clip key.  If the character's skeleton bone node or the scene object does not have a clip or if the clip index is larger than the total number of clips, return '''None'''.  </div></td></tr>
</table>
Chuck (RL)
https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RIClip&diff=4543&oldid=prev
Chuck (RL) at 02:23, 16 April 2020
2020-04-16T02:23:03Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 02:23, 16 April 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l11" >Line 11:</td>
<td colspan="2" class="diff-lineno">Line 11:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== Inheritance ===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== Inheritance ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[IC_Python_API:RLPy_RIBase|RIBase]] > [[IC_Python_API:RLPy_RIClip|RIClip]] {{clear}}</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline"> </ins>[[IC_Python_API:RLPy_RIBase|RIBase]] > [[IC_Python_API:RLPy_RIClip|RIClip]] {{clear}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Member Functions ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== Member Functions ==</div></td></tr>
</table>
Chuck (RL)
https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RIClip&diff=4500&oldid=prev
Chuck (RL) at 03:02, 13 April 2020
2020-04-13T03:02:25Z
<p></p>
<a href="https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RIClip&diff=4500&oldid=2930">Show changes</a>
Chuck (RL)
https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RIClip&diff=2930&oldid=prev
Chuck (RL): Chuck (RL) moved page IC Python API:RLPy RlClip to IC Python API:RLPy RIClip
2019-03-28T09:33:06Z
<p>Chuck (RL) moved page <a href="/IC_Python_API:RLPy_RlClip" class="mw-redirect" title="IC Python API:RLPy RlClip">IC Python API:RLPy RlClip</a> to <a href="/IC_Python_API:RLPy_RIClip" title="IC Python API:RLPy RIClip">IC Python API:RLPy RIClip</a></p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;' lang='en'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 09:33, 28 March 2019</td>
</tr><tr><td colspan='2' style='text-align: center;' lang='en'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Chuck (RL)
https://wiki.reallusion.com/index.php?title=IC_Python_API:RLPy_RIClip&diff=2929&oldid=prev
Chuck (RL): Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules|Modules}} ==Inheritance== This class inherits public member functions from: *RLPy.RIBase ==Detai..."
2019-03-28T09:32:26Z
<p>Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules|Modules}} ==Inheritance== This class inherits public member functions from: *<a href="/IC_Python_API:RLPy_RIBase" title="IC Python API:RLPy RIBase">RLPy.RIBase</a> ==Detai..."</p>
<p><b>New page</b></p><div>{{TOC}}<br />
{{Parent|IC_Python_API:RL_Python_Modules|Modules}}<br />
==Inheritance==<br />
This class inherits public member functions from:<br />
*[[IC_Python_API:RLPy_RIBase|RLPy.RIBase]]<br />
==Detailed Description==<br />
This class is used to access the clip data of the animation.<br />
<syntaxhighlight lang="Python"><br />
avatar_list = RLPy.RScene.GetAvatars()<br />
avatar = avatar_list[0]<br />
bone = avatar.GetSkeletonComponent()<br />
clip = bone.GetClip(0)<br />
<br />
# clip length<br />
clip.SetLength(RLPy.RTime(5000))<br />
print(clip.GetLength().GetValue())<br />
<br />
# get layer control of rootbone<br />
control = clip.GetControl("Layer", bone.GetRootBone())<br />
<br />
# convert scene time to clip time<br />
system_time = RLPy.RTime(13000)<br />
clip_time = clip.SceneTimeToClipTime(system_time)<br />
</syntaxhighlight><br />
==Member Functions==<br />
===ClipTimeToSceneTime===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RIClip.ClipTimeToSceneTime ( self, kClipTime )<br />
</syntaxhighlight><br />
Convert clip time to Scene time.<br />
====Parameters====<br />
<div style="margin-left: 2em;"><br />
<br />
'''kClipTime''' [IN] clip time - RLPy.RTime<br />
</div><br />
====Returns====<br />
<div style="margin-left: 2em;">Scene time - RLPy.RTime<br />
</div><br />
-----<br />
===GetControl===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RIClip.GetControl ( self, strKey, spNode )<br />
</syntaxhighlight><br />
Get transform control of the bone node.<br />
====Parameters====<br />
<div style="margin-left: 2em;"><br />
<br />
'''strKey''' [IN] Key of the controller, allowing use "Layer" as the key to retrieve the control of the Motion Layer in the clip - string<br />
<br />
'''spNode''' [IN] Specifies the corresponding node to get the control - RLPy.RIBase<br />
</div><br />
====Returns====<br />
<div style="margin-left: 2em;">Return the controller of the specified key. It will return null while not found or the key is invalid - RLPy.RControl<br />
</div><br />
-----<br />
===GetLastKeyTime===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RIClip.GetLastKeyTime ( self )<br />
</syntaxhighlight><br />
Get time of the last key in the clip.<br />
====Returns====<br />
<div style="margin-left: 2em;">Time of the last key in the clip - RLPy.RTime<br />
</div><br />
-----<br />
===GetLength===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RIClip.GetLength ( self )<br />
</syntaxhighlight><br />
Get length of the clip.<br />
====Returns====<br />
<div style="margin-left: 2em;">Clip length - RLPy.RTime<br />
</div><br />
-----<br />
===SceneTimeToClipTime===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RIClip.SceneTimeToClipTime ( self, kSceneTime )<br />
</syntaxhighlight><br />
Convert Scene time to clip time.<br />
====Parameters====<br />
<div style="margin-left: 2em;"><br />
<br />
'''kSceneTime''' [IN] Scene time - RLPy.RTime<br />
</div><br />
====Returns====<br />
<div style="margin-left: 2em;">Clip time - RLPy.RTime<br />
</div><br />
-----<br />
===SetLength===<br />
<syntaxhighlight lang="Python"><br />
RLPy.RIClip.SetLength ( self, kLength )<br />
</syntaxhighlight><br />
Set length of the clip.<br />
====Parameters====<br />
<div style="margin-left: 2em;"><br />
<br />
'''kLength''' [IN] clip length - RLPy.RTime<br />
</div><br />
====Return Values====<br />
<div style="margin-left: 2em;"><br />
<br />
'''RLPy.RStatus.Success''' Success<br />
<br />
'''RLPy.RStatus.Failure''' Fail<br />
</div></div>
Chuck (RL)