We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Custom Attributes

Home Forums Graphics / 3ds Max Custom Attributes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4061
    lightcube
    Customer

    I would like to know if Verge3D exports arbitrary custom attribute parameters and if they are accessible via JavaScript once exported?

    If not, I propose that there is a new method added to for user to inject any parameters/values that can pass into the scene. I can write a MAXScript function for the proposal if this is not already possible that can return the data that can be passed on to the Python exporters.

    _________________
    Shawn Olson
    Developer of Wall Worm

    #4067

    Thank you for the suggestion. This perfectly makes sense, as the Blender version can already handle user-defined data. We’ll take a look at your proposal. Also thanks for e-mailing us the example script. :good:

    Chief 3D Verger | LinkedIn | Twitter

    #4082
    lightcube
    Customer

    Thanks Yuri. I would be ecstatic if you could implement the methods described in my email as it would make setting up game functions easier (and I’ve already implemented those properties and methods into my tools in hopeful anticipation).

    As for using the generic user defined data (which I did not consider in script I sent), I’d suggest making a requirement to prefix the user prop variables such:

    iVerge3d_% = intVal
    fVerge3d_% = floatVal
    bVerge3d_% = boolVal
    Etc.

    The reason being is that userprop data has no consistent data types.

    So in userprop you would see:

    iVerge3d_Hitpoints = 24
    iVerge3d_Age = 42
    fVerge3d_Speed = 55.4
    bVerge3d_IsCool = true
    isOn = 0
    isWall = false
    randomInfo = Don’t Panic

    In this case only the first four would export. Maybe an optional value for exporting ALL userprop data. Having the user control what variables are exported will ensure they don’t export any sensitive information that they didn’t expect.

    Also, the isOn param you can see is ambiguous. Did user mean Integer or Boolean? So if the optional ALL data is used, you’ll have to figure a method of smartly choosing data type.

    _________________
    Shawn Olson
    Developer of Wall Worm

    #4083

    Duly noted, thanks again! :good:

    Chief 3D Verger | LinkedIn | Twitter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.