|
|
|
12-05-2021, 09:28 AM
|
#1
|
Human being with feelings
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
|
Difference between GetSetObjectState() & GetItemStateChunk() / Set...()
I picked up an old incomplete script project from another author from 6 years ago, and he's using SNM_GetSetObjectState() with SNM faststring functions.
Should I be changing them to use state chunks instead? What actually is the difference between GetSetObjectState() and the state chunk functions? The descriptions sound very similar.
|
|
|
12-05-2021, 03:07 PM
|
#2
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
|
I think SNM_GetSetObjectState() was added to overcome the former limit of the native chunk functions (they truncated at ~4 MB, old example thread).
Since this is no longer the case, no need to use the SWS/SNM function anymore I think.
|
|
|
12-05-2021, 03:22 PM
|
#3
|
Human being with feelings
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
|
Thanks!
But what is the difference between the state chunk functions and native GetSetObjectState()?
|
|
|
12-05-2021, 03:55 PM
|
#5
|
Human being with feelings
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
|
Quote:
Originally Posted by nofish
|
Okayyyy... I'm not really clear on what this old post is saying. Should we totally avoid using GetSetObjectState()?
|
|
|
12-06-2021, 08:40 AM
|
#6
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
|
As I read it, GetSetObjectState() only worked/works (? haven't ever used it, have you?) from C++, that's why they added the GetTrack/Item/../State() functions for ReaScript.
|
|
|
12-06-2021, 08:41 AM
|
#7
|
Human being with feelings
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
|
That's very strange, as it's listed in the ReaScript API with function calls in LUA etc.
|
|
|
12-06-2021, 09:09 AM
|
#8
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
|
That might be because afaik the API doc is generated automatically for C++ and ReaSript.
|
|
|
12-06-2021, 09:11 AM
|
#9
|
Human being with feelings
Join Date: Feb 2016
Location: Hollyweird
Posts: 2,637
|
Seems like you're guessing!
But you have implied the answer my main question, which is whether they're basically dealing with the same type of data (state chunks). Thanks!
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 09:47 PM.
|