Convert Script to Plugin - how difficult?

dodgerrecordsdodgerrecords Posts: 123

Hello everyone, how easy is it to convert a script to a plugin? The problem I have with some scripts is they dont save with the project very well, so converting them to a plugin i'm assuming would solve that. Is it difficult to do so? I am very experienced in computer programming but new to the Daz SDK, so I'm not sure how similar the scripting language and the SDK are.

Comments

  • rbtwhizrbtwhiz Posts: 1,588
    edited December 1969

    Some portions of the Scripting API are not available via the SDK; i.e. plugins, the content database, script specific widget wrappers, new features that would break binary compatibility with earlier versions (> 4.5.0.100) of the application, etc. So, depending on what the script is doing and/or what it is accessing, the answer to the question could be... "difficult." That said, for the vast majority of cases, porting DAZ Script to C++ is a fairly straight forward affair; assuming one has a working knowledge of both ECMAScript and C++. For the most part, the Scripting API is a subset of the C++ API.

    -Rob

  • Richard HaseltineRichard Haseltine Posts: 52,883
    edited December 1969

    What do you mean by saving a script with a project? What are you hoping that a plug-in will do differently?

Sign In or Register to comment.