<commit_before>--------------------------------------------------------------------------------------------------------
-- Custom import/export dialog with settings

rollout AlembicExportSettings "Alembic Export Settings" width:288 height:436
(
	GroupBox selectGroup "Selection" pos:[8,16] width:272 height:40
	checkbox exportSelectedCheckbox "Export Selected Objects" pos:[32,32] width:232 height:16 checked:true

	GroupBox animGroup "Animation" pos:[8,64] width:272 height:96
	label inLabel "Frame In" pos:[16,88] width:128 height:21
	label outLabel "Frame Out" pos:[16,104] width:128 height:21
	label stepsLabel "Frame Steps" pos:[16,120] width:128 height:21
	label subStepsLabel "Frame Sub-Steps" pos:[16,136] width:128 height:21
	spinner inSpinner "" pos:[112,88] width:160 height:16 range:[0,1e+006,0] type:#integer
	spinner outSpinner "" pos:[112,104] width:160 height:16 range:[1,1e+006,100] type:#integer
	spinner stepsSpinner "" pos:[112,120] width:160 height:16 range:[1,1e+006,1] type:#integer
	spinner subStepsSpinner "" pos:[112,136] width:160 height:16 range:[1,1e+006,1] type:#integer
    
	GroupBox geoGroup "Geometry" pos:[8,168] width:272 height:224
	
	dropdownList meshTopologyDropDown "Mesh Topology" pos:[16,192] width:256 height:40 items:#("Just Surfaces (No Normals)", "Point Cache (No Surfaces)", "Surface + Normals (Everything)") selection:3
	
	dropdownList particleSystemExportMethod "Particle System Export Method" pos:[16,240] width:256 height:40 items:#("Automatic Instancing", "Merged Mesh", "Shape Node Instancing (deprecated)") selection:1

	checkbox uvCheckbox "UVs" pos:[32,288] width:128 height:15 checked:true
	checkbox materialIdsCheckbox "Material Ids" pos:[32,320] width:107 height:14 checked:true
	checkbox flattenHierarchyCheckbox "Flatten Hierarchy" pos:[32,336] width:107 height:14 checked:true
	checkbox transformCacheCheckbox "Transform Cache" pos:[32,352] width:200 height:14 checked:false
	checkbox validateMeshTopology "Validate Mesh Topology" pos:[32,368]

	button exportButton "Export" pos:[16,402] width:64 height:24
	button cancelButton "Cancel" pos:[208,402] width:64 height:24

	on exportButton pressed do
	(
	    filename = getSaveFileName caption:"Export to Alembic File:" types:"Alembic(*.abc)|*.abc|All(*.*)|*.*" historyCategory:"Alembic"
	    if (filename != undefined) do
	    (


	    	jobString = "filename=" + (filename as string)
	    	jobString += ";in=" + (inSpinner.value as string)
	    	jobString += ";out=" + (outSpinner.value as string)
	    	jobString += ";step=" + (stepsSpinner.value as string)
	    	jobString += ";substep=" + (subStepsSpinner.value as string)
	    	if(meshTopologyDropDown.selection == 2) do jobString += ";purepointcache=true"
	    	if(meshTopologyDropDown.selection == 3) do jobString += ";normals=true"
	    	jobString += ";uvs=" 
	    	jobString += (uvCheckbox.checked as string)
	    	jobString += ";materialids=" 
	    	jobString += (materialIdsCheckbox.checked as string)
	    	jobString += ";exportselected=" 
	    	jobString += (exportSelectedCheckbox.checked as string)
	    	jobString += ";flattenhierarchy=" 
	    	jobString += (flattenHierarchyCheckbox.checked as string)
	    	if(particleSystemExportMethod.selection == 1) do jobString += ";automaticinstancing=true" 
	    	if(particleSystemExportMethod.selection == 2) do jobString += ";particlesystemtomeshconversion=true" 
	    	jobString += ";transformCache="
	    	jobString += (transformCacheCheckbox.checked as string)<commit_msg>fixes #276 "Just Surfaces (No Normals)" export option not activated properly<commit_after>--------------------------------------------------------------------------------------------------------
-- Custom import/export dialog with settings

rollout AlembicExportSettings "Alembic Export Settings" width:288 height:436
(
	GroupBox selectGroup "Selection" pos:[8,16] width:272 height:40
	checkbox exportSelectedCheckbox "Export Selected Objects" pos:[32,32] width:232 height:16 checked:true

	GroupBox animGroup "Animation" pos:[8,64] width:272 height:96
	label inLabel "Frame In" pos:[16,88] width:128 height:21
	label outLabel "Frame Out" pos:[16,104] width:128 height:21
	label stepsLabel "Frame Steps" pos:[16,120] width:128 height:21
	label subStepsLabel "Frame Sub-Steps" pos:[16,136] width:128 height:21
	spinner inSpinner "" pos:[112,88] width:160 height:16 range:[0,1e+006,0] type:#integer
	spinner outSpinner "" pos:[112,104] width:160 height:16 range:[1,1e+006,100] type:#integer
	spinner stepsSpinner "" pos:[112,120] width:160 height:16 range:[1,1e+006,1] type:#integer
	spinner subStepsSpinner "" pos:[112,136] width:160 height:16 range:[1,1e+006,1] type:#integer
    
	GroupBox geoGroup "Geometry" pos:[8,168] width:272 height:224
	
	dropdownList meshTopologyDropDown "Mesh Topology" pos:[16,192] width:256 height:40 items:#("Just Surfaces (No Normals)", "Point Cache (No Surfaces)", "Surface + Normals (Everything)") selection:3
	
	dropdownList particleSystemExportMethod "Particle System Export Method" pos:[16,240] width:256 height:40 items:#("Automatic Instancing", "Merged Mesh", "Shape Node Instancing (deprecated)") selection:1

	checkbox uvCheckbox "UVs" pos:[32,288] width:128 height:15 checked:true
	checkbox materialIdsCheckbox "Material Ids" pos:[32,320] width:107 height:14 checked:true
	checkbox flattenHierarchyCheckbox "Flatten Hierarchy" pos:[32,336] width:107 height:14 checked:true
	checkbox transformCacheCheckbox "Transform Cache" pos:[32,352] width:200 height:14 checked:false
	checkbox validateMeshTopology "Validate Mesh Topology" pos:[32,368]

	button exportButton "Export" pos:[16,402] width:64 height:24
	button cancelButton "Cancel" pos:[208,402] width:64 height:24

	on exportButton pressed do
	(
	    filename = getSaveFileName caption:"Export to Alembic File:" types:"Alembic(*.abc)|*.abc|All(*.*)|*.*" historyCategory:"Alembic"
	    if (filename != undefined) do
	    (


	    	jobString = "filename=" + (filename as string)
	    	jobString += ";in=" + (inSpinner.value as string)
	    	jobString += ";out=" + (outSpinner.value as string)
	    	jobString += ";step=" + (stepsSpinner.value as string)
	    	jobString += ";substep=" + (subStepsSpinner.value as string)
	    	if(meshTopologyDropDown.selection == 1) do
	    	(
	    		jobString += ";normals=false"
	    		jobString += ";purepointcache=false"
	    	)
	    	if(meshTopologyDropDown.selection == 2) do
	    	(
	    		jobString += ";normals=false"
	    		jobString += ";purepointcache=true"
	    	)
	    	if(meshTopologyDropDown.selection == 3) do 
	    	(
	    		jobString += ";purepointcache=false"
	    		jobString += ";normals=true"
	    	)
	    	jobString += ";uvs=" 
	    	jobString += (uvCheckbox.checked as string)
	    	jobString += ";materialids=" 
	    	jobString += (materialIdsCheckbox.checked as string)
	    	jobString += ";exportselected=" 
	    	jobString += (exportSelectedCheckbox.checked as string)
	    	jobString += ";flattenhierarchy=" 
	    	jobString += (flattenHierarchyCheckbox.checked as string)
	    	if(particleSystemExportMethod.selection == 1) do jobString += ";automaticinstancing=true" 
	    	if(particleSystemExportMethod.selection == 2) do jobString += ";particlesystemtomeshconversion=true" 
	    	jobString += ";transformCache="
	    	jobString += (transformCacheCheckbox.checked as string)
{'fraction_non_alphanumeric': 0.15122150948546473, 'fraction_numerical': 0.06578408625631227, 'mean_word_length': 4.472740851381628, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2130868', 'n_tokens_mistral': 2659, 'n_tokens_neox': 2200, 'n_words': 566}