Itoo Software Forum

Author Topic: Clear data set  (Read 254 times)

arch3d

  • Full Member
  • ***
  • Posts: 123
    • arch3d.pl
Clear data set
« on: February 02, 2021, 01:28:38 PM »
Hello,
Quick question:)
Can i clear Data Set from RC SplineMod? I dont want to lose markers

Thx

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Clear data set
« Reply #1 on: February 02, 2021, 01:58:11 PM »
Hi.
I hope this maxscript will do what You are asking for.

Code: [Select]
mods =for each in $.modifiers where classof each == RC_Spline collect each
for each in mods do
(
each.mkuserid[1]=0
each.mkuserdata0[1]=0.0
each.mkuserdata1[1]=0.0
each.mkuserdata2[1]=0.0
each.mkuserdata3[1]=0.0
each.mkuserdata4[1]=0.0
each.mkuserdata5[1]=0.0
each.mkuserdata6[1]=0.0
each.mkuserdata7[1]=0.0
each.mkuserdata8[1]=0.0
each.mkuserlabel0 = "User Data 0"
each.mkuserlabel1 = "User Data 1"
each.mkuserlabel2 = "User Data 2"
each.mkuserlabel3 = "User Data 3"
each.mkuserlabel4 = "User Data 4"
each.mkuserlabel5 = "User Data 4"
each.mkuserlabel6 = "User Data 5"
each.mkuserlabel7 = "User Data 6"
each.mkuserlabel8 = "User Data 8"
)
Rokas

arch3d

  • Full Member
  • ***
  • Posts: 123
    • arch3d.pl
Re: Clear data set
« Reply #2 on: February 02, 2021, 02:15:23 PM »
Thx,
It works but clear user data, and i would like to remove saved data sets:)

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Clear data set
« Reply #3 on: February 02, 2021, 02:17:57 PM »
attach a maxfile what You want to clear.
Rokas

arch3d

  • Full Member
  • ***
  • Posts: 123
    • arch3d.pl
Re: Clear data set
« Reply #4 on: February 02, 2021, 03:00:27 PM »
Nothing special, no worries.
Thx again